public class ObjectToHttpClientMethodRequest extends AbstractMessageTransformer
ObjectToHttpClientMethodRequest
transforms a MuleMessage into a
HttpClient HttpMethod that represents an HttpRequest.encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
ObjectToHttpClientMethodRequest() |
checkReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transform
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, unregisterSourceType, unregisterSourceType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform
process
initialise
dispose
setName
getName
setMuleContext
setEndpoint
public Object transformMessage(MuleMessage msg, String outputEncoding) throws TransformerException
AbstractMessageTransformer
transformMessage
in class AbstractMessageTransformer
TransformerException
protected String detectHttpMethod(MuleMessage msg)
protected HttpMethod createGetMethod(MuleMessage msg, String outputEncoding) throws Exception
Exception
protected HttpMethod createPostMethod(MuleMessage msg, String outputEncoding) throws Exception
Exception
protected String getBodyParameterName(MuleMessage message)
protected HttpMethod createPutMethod(MuleMessage msg, String outputEncoding) throws Exception
Exception
protected HttpMethod createDeleteMethod(MuleMessage message) throws Exception
Exception
protected HttpMethod createHeadMethod(MuleMessage message) throws Exception
Exception
protected HttpMethod createOptionsMethod(MuleMessage message) throws Exception
Exception
protected HttpMethod createTraceMethod(MuleMessage message) throws Exception
Exception
protected HttpMethod createPatchMethod(MuleMessage message, String outputEncoding) throws Exception
Exception
protected URI getURI(MuleMessage message) throws URISyntaxException, TransformerException
protected void setupEntityMethod(Object src, String encoding, MuleMessage msg, EntityEnclosingMethod postMethod) throws UnsupportedEncodingException, TransformerException
protected void setHeaders(HttpMethod httpMethod, MuleMessage msg) throws TransformerException
TransformerException
protected MultipartRequestEntity createMultiPart(MuleMessage msg, EntityEnclosingMethod method) throws Exception
Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.