public class DefaultHttpRequester extends AbstractNonBlockingMessageProcessor implements Initialisable, MuleContextAware, FlowConstructAware, DebugInfoProvider
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
PROPERTY_NAME
Constructor and Description |
---|
DefaultHttpRequester() |
isNonBlocking, process, setMessagingExceptionHandler
getAnnotation, getAnnotations, setAnnotations
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 fromprotected MuleEvent processBlocking(MuleEvent muleEvent) throws MuleException
processBlocking
in class AbstractNonBlockingMessageProcessor
MuleException
protected void processNonBlocking(MuleEvent muleEvent, CompletionHandler completionHandler) throws MuleException
processNonBlocking
in class AbstractNonBlockingMessageProcessor
MuleException
protected void innerProcessNonBlocking(MuleEvent muleEvent, CompletionHandler completionHandler, boolean checkRetry) throws MuleException
MuleException
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
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
public List<FieldDebugInfo<?>> getDebugInfo(MuleEvent event)
DebugInfoProvider
getDebugInfo
in interface DebugInfoProvider
event
- event used while debugging. Non nullList
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.