public class HttpResponseBuilder extends HttpMessageBuilder implements Initialisable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String |
MULTIPART |
PHASE_NAME
Constructor and Description |
---|
HttpResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
build(HttpResponseBuilder httpResponseBuilder,
MuleEvent event) |
static HttpResponseBuilder |
emptyInstance(MuleContext muleContext) |
HttpStreamingType |
getResponseStreaming() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setDisablePropertiesAsHeaders(boolean disablePropertiesAsHeaders) |
void |
setMuleContext(MuleContext context) |
void |
setReasonPhrase(String reasonPhrase) |
void |
setResponseStreaming(HttpStreamingType responseStreaming) |
void |
setStatusCode(String statusCode) |
addHeader, getName, resolveParams, setBuilders, setName, setParams
public static final String MULTIPART
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic HttpResponse build(HttpResponseBuilder httpResponseBuilder, MuleEvent event) throws MessagingException
MessagingException
public static HttpResponseBuilder emptyInstance(MuleContext muleContext)
public void setReasonPhrase(String reasonPhrase)
public void setStatusCode(String statusCode)
public void setDisablePropertiesAsHeaders(boolean disablePropertiesAsHeaders)
public void setResponseStreaming(HttpStreamingType responseStreaming)
public HttpStreamingType getResponseStreaming()
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.