public class RestServiceWrapper extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_VALUE |
static String |
DELETE |
static String |
GET |
static String |
HTTP_METHOD |
protected Log |
logger
logger used by this class
|
flowConstruct, interceptorChain, interceptors, lifecycleManager, muleContext, notificationHandler, statistics
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
RestServiceWrapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialise() |
Object |
doInvoke(MuleEvent event) |
Filter |
getFilter() |
String |
getHttpMethod() |
Map |
getOptionalParams()
Optional params that are pulled from the message.
|
List |
getPayloadParameterNames() |
Map |
getRequiredParams() |
String |
getServiceUrl() |
protected void |
handleException(RestServiceException e,
MuleMessage result) |
protected boolean |
isErrorPayload(MuleMessage message) |
void |
setFilter(Filter errorFilter) |
void |
setHttpMethod(String httpMethod) |
void |
setOptionalParams(Map optionalParams) |
void |
setPayloadParameterNames(List payloadParameterNames) |
void |
setRequiredParams(Map requiredParams)
Required params that are pulled from the message.
|
void |
setServiceUrl(String serviceUrl) |
applyLifecycleAndDependencyInjection, createResultEvent, dispose, doDispose, doStart, doStop, fireComponentNotification, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setFlowConstruct, setInterceptors, setMessagingExceptionHandler, setMuleContext, start, stop, toString
getAnnotation, getAnnotations, setAnnotations
public static final String DELETE
public static final String GET
public static final String CONTENT_TYPE_VALUE
public static final String HTTP_METHOD
protected transient Log logger
public String getServiceUrl()
public void setServiceUrl(String serviceUrl)
public Map getRequiredParams()
public void setRequiredParams(Map requiredParams)
ExpressionEvaluator
expressions such as
xpath, header, xquery, etcrequiredParams
- public Map getOptionalParams()
ExpressionEvaluator
expressions such as xpath, header, xquery, etcpublic void setOptionalParams(Map optionalParams)
public String getHttpMethod()
public void setHttpMethod(String httpMethod)
public List getPayloadParameterNames()
public void setPayloadParameterNames(List payloadParameterNames)
public Filter getFilter()
public void setFilter(Filter errorFilter)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractComponent
InitialisationException
public Object doInvoke(MuleEvent event) throws Exception
doInvoke
in class AbstractComponent
Exception
protected boolean isErrorPayload(MuleMessage message)
protected void handleException(RestServiceException e, MuleMessage result) throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.