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, stopping
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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, toString
public 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 AbstractComponent
InitialisationException
public MuleMessage doOnCall(MuleEvent event) throws Exception
doOnCall
in class AbstractComponent
Exception
protected boolean isErrorPayload(MuleMessage message)
protected void handleException(RestServiceException e, MuleMessage result) throws Exception
Exception
protected void doOnEvent(MuleEvent event)
protected void doDispose()
doDispose
in class AbstractComponent
protected void doStart() throws MuleException
doStart
in class AbstractComponent
MuleException
protected void doStop() throws MuleException
doStop
in class AbstractComponent
MuleException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.