public class RestServiceWrapper
extends org.mule.component.AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_VALUE |
static String |
DELETE |
static String |
GET |
static String |
HTTP_METHOD |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
| Constructor and Description |
|---|
RestServiceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialise() |
Object |
doInvoke(org.mule.api.MuleEvent event) |
org.mule.api.routing.filter.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,
org.mule.api.MuleMessage result) |
protected boolean |
isErrorPayload(org.mule.api.MuleMessage message) |
void |
setFilter(org.mule.api.routing.filter.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, getAnnotation, getAnnotations, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setAnnotations, setFlowConstruct, setInterceptors, setMessagingExceptionHandler, setMuleContext, start, stop, toStringpublic static final String DELETE
public static final String GET
public static final String CONTENT_TYPE_VALUE
public static final String HTTP_METHOD
protected transient org.apache.commons.logging.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 org.mule.api.routing.filter.Filter getFilter()
public void setFilter(org.mule.api.routing.filter.Filter errorFilter)
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.component.AbstractComponentorg.mule.api.lifecycle.InitialisationExceptionpublic Object doInvoke(org.mule.api.MuleEvent event) throws Exception
doInvoke in class org.mule.component.AbstractComponentExceptionprotected boolean isErrorPayload(org.mule.api.MuleMessage message)
protected void handleException(RestServiceException e, org.mule.api.MuleMessage result) throws Exception
ExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.