Package io.micronaut.http.server.netty
Class NettyHttpResponseFactory
java.lang.Object
io.micronaut.http.server.netty.NettyHttpResponseFactory
- All Implemented Interfaces:
- HttpResponseFactory
Implementation of 
HttpResponseFactory for Netty.- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Field SummaryFields inherited from interface io.micronaut.http.HttpResponseFactoryINSTANCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> MutableHttpResponse<T>ok(T body) Creates anHttpStatus.OKresponse with a body.<T> MutableHttpResponse<T>Return a response for the given status.<T> MutableHttpResponse<T>status(HttpStatus status, String reason) Return a response for the given status.<T> MutableHttpResponse<T>status(HttpStatus status, T body) Return a response for the given status.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.HttpResponseFactoryok, status
- 
Constructor Details- 
NettyHttpResponseFactorypublic NettyHttpResponseFactory()
 
- 
- 
Method Details- 
okDescription copied from interface:HttpResponseFactoryCreates anHttpStatus.OKresponse with a body.- Specified by:
- okin interface- HttpResponseFactory
- Type Parameters:
- T- The body type
- Parameters:
- body- The body
- Returns:
- The ok response with the given body
 
- 
statusDescription copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
- statusin interface- HttpResponseFactory
- Type Parameters:
- T- The body type
- Parameters:
- status- The status
- body- The body
- Returns:
- The response
 
- 
statusDescription copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
- statusin interface- HttpResponseFactory
- Type Parameters:
- T- The response type
- Parameters:
- status- The status
- reason- An alternative reason message
- Returns:
- The response
 
- 
statusDescription copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
- statusin interface- HttpResponseFactory
- Type Parameters:
- T- The response type
- Parameters:
- status- The status
- reason- An alternative reason message
- Returns:
- The response
 
 
-