Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.kristofa.test.http;
 
 import java.util.Set;

Contains the HTTP request properties required to identify or compare a HTTP request.

Author(s):
kristof
 
public interface HttpRequest {

    
Gets method for request.

Returns:
Method for request.
    Method getMethod();

    
Get content for request.

Returns:
Content for request.
    byte[] getContent();

    
Gets path for request without query parameters.

Returns:
Path for request.
    String getPath();

    
Gets query parameters for request.

Returns:
Query parameters for request.
Gets query parameters with given key.

Parameters:
key Query parameter key. Should not be null or blank.
Returns:
Query parameters with given key.
    Set<QueryParametergetQueryParameters(final String key);

    
Get http message headers.

Returns:
Http message headers.
Get http message headers with given name/key.

Parameters:
name Name/key. Should not be null or blank.
Returns:
Http message headers with given name/key.
New to GrepCode? Check out our FAQ X