public class RestServiceWrapper extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
CONTENT_TYPE_VALUE |
static String |
GET |
static String |
HTTP_METHOD |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
disposed, disposing, initialised, notificationHandler, service, started, statistics, stoppingPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
RestServiceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDispose() |
protected void |
doInitialise() |
MuleMessage |
doOnCall(MuleEvent event) |
protected void |
doOnEvent(MuleEvent event) |
protected void |
doStart() |
protected void |
doStop() |
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) |
checkDisposed, dispose, fireComponentNotification, getService, getStatistics, initialise, onCall, release, setService, start, stop, toStringpublic static final String GET
public static final String CONTENT_TYPE
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, etcrequiredParams - public 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 AbstractComponentInitialisationExceptionpublic MuleMessage doOnCall(MuleEvent event) throws Exception
doOnCall in class AbstractComponentExceptionprotected boolean isErrorPayload(MuleMessage message)
protected void handleException(RestServiceException e, MuleMessage result) throws Exception
Exceptionprotected void doOnEvent(MuleEvent event)
protected void doDispose()
doDispose in class AbstractComponentprotected void doStart()
throws MuleException
doStart in class AbstractComponentMuleExceptionprotected void doStop()
throws MuleException
doStop in class AbstractComponentMuleExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.