public interface HttpRequestFactory
MutableHttpRequest objects.| Modifier and Type | Field and Description | 
|---|---|
static HttpRequestFactory | 
INSTANCE
The default  
CookieFactory instance. | 
| Modifier and Type | Method and Description | 
|---|---|
<T> MutableHttpRequest<T> | 
create(HttpMethod httpMethod,
      java.lang.String uri)
Create a new  
MutableHttpRequest for the given method and URI. | 
default <T> MutableHttpRequest<T> | 
create(HttpMethod httpMethod,
      java.lang.String uri,
      java.lang.String httpMethodName)
Allows to create request including non-standard http methods. 
 | 
<T> MutableHttpRequest<T> | 
delete(java.lang.String uri,
      T body)
Return a  
MutableHttpRequest that executes an HttpMethod.DELETE request for the given URI. | 
<T> MutableHttpRequest<T> | 
get(java.lang.String uri)
Return a  
MutableHttpRequest that executes an HttpMethod.GET request for the given URI. | 
<T> MutableHttpRequest<T> | 
head(java.lang.String uri)
Return a  
MutableHttpRequest that executes an HttpMethod.HEAD request for the given URI. | 
<T> MutableHttpRequest<T> | 
options(java.lang.String uri)
Return a  
MutableHttpRequest that executes an HttpMethod.OPTIONS request for the given URI. | 
<T> MutableHttpRequest<T> | 
patch(java.lang.String uri,
     T body)
Return a  
MutableHttpRequest that executes an HttpMethod.PATCH request for the given URI. | 
<T> MutableHttpRequest<T> | 
post(java.lang.String uri,
    T body)
Return a  
MutableHttpRequest that executes an HttpMethod.POST request for the given URI. | 
<T> MutableHttpRequest<T> | 
put(java.lang.String uri,
   T body)
Return a  
MutableHttpRequest that executes an HttpMethod.PUT request for the given URI. | 
static final HttpRequestFactory INSTANCE
CookieFactory instance.<T> MutableHttpRequest<T> get(java.lang.String uri)
MutableHttpRequest that executes an HttpMethod.GET request for the given URI.T - The Http request typeuri - The URIMutableHttpRequest instance<T> MutableHttpRequest<T> post(java.lang.String uri, T body)
MutableHttpRequest that executes an HttpMethod.POST request for the given URI.T - The body typeuri - The URIbody - The bodyMutableHttpRequest instance<T> MutableHttpRequest<T> put(java.lang.String uri, T body)
MutableHttpRequest that executes an HttpMethod.PUT request for the given URI.T - The body typeuri - The URIbody - The bodyMutableHttpRequest instance<T> MutableHttpRequest<T> patch(java.lang.String uri, T body)
MutableHttpRequest that executes an HttpMethod.PATCH request for the given URI.T - The body typeuri - The URIbody - The bodyMutableHttpRequest instance<T> MutableHttpRequest<T> head(java.lang.String uri)
MutableHttpRequest that executes an HttpMethod.HEAD request for the given URI.T - The Http request typeuri - The URIMutableHttpRequest instance<T> MutableHttpRequest<T> options(java.lang.String uri)
MutableHttpRequest that executes an HttpMethod.OPTIONS request for the given URI.T - The Http request typeuri - The URIMutableHttpRequest instance<T> MutableHttpRequest<T> delete(java.lang.String uri, T body)
MutableHttpRequest that executes an HttpMethod.DELETE request for the given URI.T - The body typeuri - The URIbody - an optional bodyMutableHttpRequest instance<T> MutableHttpRequest<T> create(HttpMethod httpMethod, java.lang.String uri)
MutableHttpRequest for the given method and URI.T - The Http request typehttpMethod - The methoduri - The URIdefault <T> MutableHttpRequest<T> create(HttpMethod httpMethod, java.lang.String uri, java.lang.String httpMethodName)
T - The http request typehttpMethod - The methoduri - The URIhttpMethodName - Method name. For standard http method equals to Enum.name()