public class HttpResponseBuilder extends AbstractMessageProcessorOwner implements Initialisable, MessageProcessor, NonBlockingSupported
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
HttpResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String key,
String value) |
protected void |
checkVersion(MuleMessage message) |
protected void |
copyOutboundProperties(HttpResponse response,
MuleMessage message) |
protected List<MessageProcessor> |
getOwnedMessageProcessors() |
String |
getVersion() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
protected void |
setBody(HttpResponse response,
MuleMessage message,
MuleEvent event) |
void |
setCacheControl(CacheControlHeader cacheControl) |
protected void |
setCacheControl(HttpResponse response,
MuleMessage message) |
protected void |
setContentType(HttpResponse response,
MuleMessage message) |
void |
setContentType(String contentType) |
protected void |
setCookies(HttpResponse response,
MuleMessage message) |
void |
setCookies(List<CookieWrapper> cookies) |
protected void |
setDateHeader(HttpResponse httpResponse,
Date date) |
protected void |
setHeaders(HttpResponse response,
MuleMessage message) |
void |
setHeaders(Map<String,String> headers) |
void |
setMessageProcessor(MessageProcessor messageProcessor) |
void |
setPropagateMuleProperties(boolean propagateMuleProperties) |
void |
setStatus(String status) |
void |
setVersion(String version) |
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
dispose, getFlowConstruct, getMessagingExceptionHandler, getMuleContext, setFlowConstruct, setMessagingExceptionHandler, setMuleContext, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
setMuleContext
setFlowConstruct
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
initialise
in class AbstractMuleObjectOwner<MessageProcessor>
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
protected void setDateHeader(HttpResponse httpResponse, Date date)
protected List<MessageProcessor> getOwnedMessageProcessors()
getOwnedMessageProcessors
in class AbstractMessageProcessorOwner
protected void setBody(HttpResponse response, MuleMessage message, MuleEvent event) throws MuleException
MuleException
protected void copyOutboundProperties(HttpResponse response, MuleMessage message)
protected void setCacheControl(HttpResponse response, MuleMessage message)
protected void setCookies(HttpResponse response, MuleMessage message) throws MuleException
MuleException
protected void setHeaders(HttpResponse response, MuleMessage message)
protected void checkVersion(MuleMessage message)
protected void setContentType(HttpResponse response, MuleMessage message)
public void setStatus(String status)
public void setContentType(String contentType)
public void setVersion(String version)
public void setCookies(List<CookieWrapper> cookies)
public void setCacheControl(CacheControlHeader cacheControl)
public String getVersion()
public void setPropagateMuleProperties(boolean propagateMuleProperties)
public void setMessageProcessor(MessageProcessor messageProcessor)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.