public class HttpResponseFactory extends Object
Event to an HttpResponse.| Constructor and Description |
|---|
HttpResponseFactory(HttpStreamingType responseStreaming,
TransformationService transformationService) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
create(HttpResponseBuilder responseBuilder,
HttpListenerResponseBuilder listenerResponseBuilder,
boolean supportsTransferEncoding)
Creates an .
|
String |
resolveReasonPhrase(String builderReasonPhrase,
Integer statusCode) |
public static final String MULTIPART
public HttpResponseFactory(HttpStreamingType responseStreaming, TransformationService transformationService)
public HttpResponse create(HttpResponseBuilder responseBuilder, HttpListenerResponseBuilder listenerResponseBuilder, boolean supportsTransferEncoding) throws MessagingException
responseBuilder - The HttpResponseBuilder that should be modified if necessary and used to build the
HttpResponse.listenerResponseBuilder - The generic configured for this listener.supportsTransferEncoding - boolean that determines whether the HTTP protocol of the response supports streaming.MessagingException - if the response creation fails.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.