@Internal public class NettyClientHttpRequestFactory extends Object implements HttpRequestFactory
HttpRequestFactory interface for Netty.INSTANCE| Constructor and Description |
|---|
NettyClientHttpRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableHttpRequest<T> |
create(HttpMethod httpMethod,
String uri)
Create a new
MutableHttpRequest for the given method and URI. |
<T> MutableHttpRequest<T> |
delete(String uri,
T body)
Return a
MutableHttpRequest that executes an HttpMethod.DELETE request for the given URI. |
<T> MutableHttpRequest<T> |
get(String uri)
Return a
MutableHttpRequest that executes an HttpMethod.GET request for the given URI. |
<T> MutableHttpRequest<T> |
head(String uri)
Return a
MutableHttpRequest that executes an HttpMethod.HEAD request for the given URI. |
<T> MutableHttpRequest<T> |
options(String uri)
Return a
MutableHttpRequest that executes an HttpMethod.OPTIONS request for the given URI. |
<T> MutableHttpRequest<T> |
patch(String uri,
T body)
Return a
MutableHttpRequest that executes an HttpMethod.PATCH request for the given URI. |
<T> MutableHttpRequest<T> |
post(String uri,
T body)
Return a
MutableHttpRequest that executes an HttpMethod.POST request for the given URI. |
<T> MutableHttpRequest<T> |
put(String uri,
T body)
Return a
MutableHttpRequest that executes an HttpMethod.PUT request for the given URI. |
public <T> MutableHttpRequest<T> get(String uri)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.GET request for the given URI.get in interface HttpRequestFactoryT - The Http request typeuri - The URIMutableHttpRequest instancepublic <T> MutableHttpRequest<T> post(String uri, T body)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.POST request for the given URI.post in interface HttpRequestFactoryT - The body typeuri - The URIbody - The bodyMutableHttpRequest instancepublic <T> MutableHttpRequest<T> put(String uri, T body)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.PUT request for the given URI.put in interface HttpRequestFactoryT - The body typeuri - The URIbody - The bodyMutableHttpRequest instancepublic <T> MutableHttpRequest<T> patch(String uri, T body)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.PATCH request for the given URI.patch in interface HttpRequestFactoryT - The body typeuri - The URIbody - The bodyMutableHttpRequest instancepublic <T> MutableHttpRequest<T> head(String uri)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.HEAD request for the given URI.head in interface HttpRequestFactoryT - The Http request typeuri - The URIMutableHttpRequest instancepublic <T> MutableHttpRequest<T> options(String uri)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.OPTIONS request for the given URI.options in interface HttpRequestFactoryT - The Http request typeuri - The URIMutableHttpRequest instancepublic <T> MutableHttpRequest<T> delete(String uri, T body)
HttpRequestFactoryMutableHttpRequest that executes an HttpMethod.DELETE request for the given URI.delete in interface HttpRequestFactoryT - The body typeuri - The URIbody - an optional bodyMutableHttpRequest instancepublic <T> MutableHttpRequest<T> create(HttpMethod httpMethod, String uri)
HttpRequestFactoryMutableHttpRequest for the given method and URI.create in interface HttpRequestFactoryT - The Http request typehttpMethod - The methoduri - The URI