public class DefaultHttpRequester extends Object implements MessageProcessor, Initialisable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static List<String> |
DEFAULT_EMPTY_BODY_METHODS |
static String |
DEFAULT_FOLLOW_REDIRECTS |
static String |
DEFAULT_PAYLOAD_EXPRESSION |
PHASE_NAME
Constructor and Description |
---|
DefaultHttpRequester() |
public static final String DEFAULT_PAYLOAD_EXPRESSION
public static final String DEFAULT_FOLLOW_REDIRECTS
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 MuleEvent process(MuleEvent muleEvent) throws MuleException
MessageProcessor
process
in interface MessageProcessor
muleEvent
- MuleEvent to be processedMuleException
public String getHost()
public void setHost(String host)
public String getPort()
public void setPort(String port)
public String getPath()
public void setPath(String path)
public String getUrl()
public void setUrl(String url)
public HttpRequesterRequestBuilder getRequestBuilder()
public void setRequestBuilder(HttpRequesterRequestBuilder requestBuilder)
public String getMethod()
public void setMethod(String method)
public DefaultHttpRequesterConfig getConfig()
public void setConfig(DefaultHttpRequesterConfig requestConfig)
public void setFollowRedirects(String followsRedirects)
public void setRequestStreamingMode(String requestStreamingMode)
public ResponseValidator getResponseValidator()
public void setResponseValidator(ResponseValidator responseValidator)
public void setSendBodyMode(String sendBodyMode)
public String getSource()
public void setSource(String source)
public String getTarget()
public void setTarget(String target)
public void setParseResponse(String parseResponse)
public void setResponseTimeout(String responseTimeout)
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.