Package io.micronaut.http.simple
Class SimpleHttpResponseFactory
java.lang.Object
io.micronaut.http.simple.SimpleHttpResponseFactory
- All Implemented Interfaces:
 HttpResponseFactory
Simple 
HttpResponseFactory implementation.
 This is the default fallback factory.- Since:
 - 1.0
 - Author:
 - Vladimir Orany
 
- 
Field Summary
Fields inherited from interface io.micronaut.http.HttpResponseFactory
INSTANCE - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.HttpResponseFactory
ok, status 
- 
Constructor Details
- 
SimpleHttpResponseFactory
public SimpleHttpResponseFactory() 
 - 
 - 
Method Details
- 
ok
Description copied from interface:HttpResponseFactoryCreates anHttpStatus.OKresponse with a body.- Specified by:
 okin interfaceHttpResponseFactory- Type Parameters:
 T- The body type- Parameters:
 body- The body- Returns:
 - The ok response with the given body
 
 - 
status
Description copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
 statusin interfaceHttpResponseFactory- Type Parameters:
 T- The response type- Parameters:
 status- The statusreason- An alternative reason message- Returns:
 - The response
 
 - 
status
Description copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
 statusin interfaceHttpResponseFactory- Type Parameters:
 T- The response type- Parameters:
 status- The statusreason- An alternative reason message- Returns:
 - The response
 
 - 
status
Description copied from interface:HttpResponseFactoryReturn a response for the given status.- Specified by:
 statusin interfaceHttpResponseFactory- Type Parameters:
 T- The body type- Parameters:
 status- The statusbody- The body- Returns:
 - The response
 
 
 -