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 SummaryFields inherited from interface io.micronaut.http.HttpRequestFactoryINSTANCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
NettyClientHttpRequestFactorypublic NettyClientHttpRequestFactory()
 
- 
- 
Method Details- 
getDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.GETrequest for the given URI.- Specified by:
- getin interface- HttpRequestFactory
- Type Parameters:
- T- The Http request type
- Parameters:
- uri- The URI
- Returns:
- The MutableHttpRequestinstance
 
- 
postDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.POSTrequest for the given URI.- Specified by:
- postin interface- HttpRequestFactory
- Type Parameters:
- T- The body type
- Parameters:
- uri- The URI
- body- The body
- Returns:
- The MutableHttpRequestinstance
 
- 
putDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.PUTrequest for the given URI.- Specified by:
- putin interface- HttpRequestFactory
- Type Parameters:
- T- The body type
- Parameters:
- uri- The URI
- body- The body
- Returns:
- The MutableHttpRequestinstance
 
- 
patchDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.PATCHrequest for the given URI.- Specified by:
- patchin interface- HttpRequestFactory
- Type Parameters:
- T- The body type
- Parameters:
- uri- The URI
- body- The body
- Returns:
- The MutableHttpRequestinstance
 
- 
headDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.HEADrequest for the given URI.- Specified by:
- headin interface- HttpRequestFactory
- Type Parameters:
- T- The Http request type
- Parameters:
- uri- The URI
- Returns:
- The MutableHttpRequestinstance
 
- 
optionsDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.OPTIONSrequest for the given URI.- Specified by:
- optionsin interface- HttpRequestFactory
- Type Parameters:
- T- The Http request type
- Parameters:
- uri- The URI
- Returns:
- The MutableHttpRequestinstance
 
- 
deleteDescription copied from interface:HttpRequestFactoryReturn aMutableHttpRequestthat executes anHttpMethod.DELETErequest for the given URI.- Specified by:
- deletein interface- HttpRequestFactory
- Type Parameters:
- T- The body type
- Parameters:
- uri- The URI
- body- an optional body
- Returns:
- The MutableHttpRequestinstance
 
- 
createDescription copied from interface:HttpRequestFactoryCreate a newMutableHttpRequestfor the given method and URI.- Specified by:
- createin interface- HttpRequestFactory
- Type Parameters:
- T- The Http request type
- Parameters:
- httpMethod- The method
- uri- The URI
- Returns:
- The request
 
- 
createDescription copied from interface:HttpRequestFactoryAllows to create request including non-standard http methods.- Specified by:
- createin interface- HttpRequestFactory
- Type Parameters:
- T- The http request type
- Parameters:
- httpMethod- The method
- uri- The URI
- httpMethodName- Method name. For standard http method equals to- Enum.name()
- Returns:
- The request
 
 
-