Package io.micronaut.http.client.netty
Class NettyClientHttpRequestFactory
java.lang.Object
io.micronaut.http.client.netty.NettyClientHttpRequestFactory
- All Implemented Interfaces:
HttpRequestFactory
Implementation of the
HttpRequestFactory interface for Netty.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.http.HttpRequestFactory
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableHttpRequest<T>create(HttpMethod httpMethod, String uri) Create a newMutableHttpRequestfor the given method and URI.<T> MutableHttpRequest<T>create(HttpMethod httpMethod, String uri, String httpMethodName) Allows to create request including non-standard http methods.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.DELETErequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.GETrequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.HEADrequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.OPTIONSrequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.PATCHrequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.POSTrequest for the given URI.<T> MutableHttpRequest<T>Return aMutableHttpRequestthat executes anHttpMethod.PUTrequest for the given URI.
-
Constructor Details
-
NettyClientHttpRequestFactory
public NettyClientHttpRequestFactory()
-
-
Method Details
-
get
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.GETrequest for the given URI.- Specified by:
getin interfaceHttpRequestFactory- Type Parameters:
T- The Http request type- Parameters:
uri- The URI- Returns:
- The
MutableHttpRequestinstance
-
post
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.POSTrequest for the given URI.- Specified by:
postin interfaceHttpRequestFactory- Type Parameters:
T- The body type- Parameters:
uri- The URIbody- The body- Returns:
- The
MutableHttpRequestinstance
-
put
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.PUTrequest for the given URI.- Specified by:
putin interfaceHttpRequestFactory- Type Parameters:
T- The body type- Parameters:
uri- The URIbody- The body- Returns:
- The
MutableHttpRequestinstance
-
patch
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.PATCHrequest for the given URI.- Specified by:
patchin interfaceHttpRequestFactory- Type Parameters:
T- The body type- Parameters:
uri- The URIbody- The body- Returns:
- The
MutableHttpRequestinstance
-
head
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.HEADrequest for the given URI.- Specified by:
headin interfaceHttpRequestFactory- Type Parameters:
T- The Http request type- Parameters:
uri- The URI- Returns:
- The
MutableHttpRequestinstance
-
options
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.OPTIONSrequest for the given URI.- Specified by:
optionsin interfaceHttpRequestFactory- Type Parameters:
T- The Http request type- Parameters:
uri- The URI- Returns:
- The
MutableHttpRequestinstance
-
delete
Description copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.DELETErequest for the given URI.- Specified by:
deletein interfaceHttpRequestFactory- Type Parameters:
T- The body type- Parameters:
uri- The URIbody- an optional body- Returns:
- The
MutableHttpRequestinstance
-
create
Description copied from interface:HttpRequestFactoryCreate a newMutableHttpRequestfor the given method and URI.- Specified by:
createin interfaceHttpRequestFactory- Type Parameters:
T- The Http request type- Parameters:
httpMethod- The methoduri- The URI- Returns:
- The request
-
create
Description copied from interface:HttpRequestFactoryAllows to create request including non-standard http methods.- Specified by:
createin interfaceHttpRequestFactory- Type Parameters:
T- The http request type- Parameters:
httpMethod- The methoduri- The URIhttpMethodName- Method name. For standard http method equals toEnum.name()- Returns:
- The request
-