org.mule.transport.http.transformers
Class ObjectToHttpClientMethodRequest
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.transformer.AbstractMessageTransformer
org.mule.transport.http.transformers.ObjectToHttpClientMethodRequest
- All Implemented Interfaces:
- AnnotatedObject, MuleContextAware, Disposable, Initialisable, NameableObject, NamedObject, MessageProcessor, MessageTransformer, Transformer, EndpointAware
public class ObjectToHttpClientMethodRequest
- extends AbstractMessageTransformer
ObjectToHttpClientMethodRequest
transforms a MuleMessage into a
HttpClient HttpMethod that represents an HttpRequest.
Methods inherited from class org.mule.transformer.AbstractTransformer |
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 |
Methods inherited from interface org.mule.api.transformer.Transformer |
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform |
ObjectToHttpClientMethodRequest
public ObjectToHttpClientMethodRequest()
transformMessage
public Object transformMessage(MuleMessage msg,
String outputEncoding)
throws TransformerException
- Description copied from class:
AbstractMessageTransformer
- Transform the message
- Specified by:
transformMessage
in class AbstractMessageTransformer
- Throws:
TransformerException
detectHttpMethod
protected String detectHttpMethod(MuleMessage msg)
createGetMethod
protected HttpMethod createGetMethod(MuleMessage msg,
String outputEncoding)
throws Exception
- Throws:
Exception
createPostMethod
protected HttpMethod createPostMethod(MuleMessage msg,
String outputEncoding)
throws Exception
- Throws:
Exception
getBodyParameterName
protected String getBodyParameterName(MuleMessage message)
createPutMethod
protected HttpMethod createPutMethod(MuleMessage msg,
String outputEncoding)
throws Exception
- Throws:
Exception
createDeleteMethod
protected HttpMethod createDeleteMethod(MuleMessage message)
throws Exception
- Throws:
Exception
createHeadMethod
protected HttpMethod createHeadMethod(MuleMessage message)
throws Exception
- Throws:
Exception
createOptionsMethod
protected HttpMethod createOptionsMethod(MuleMessage message)
throws Exception
- Throws:
Exception
createTraceMethod
protected HttpMethod createTraceMethod(MuleMessage message)
throws Exception
- Throws:
Exception
createPatchMethod
protected HttpMethod createPatchMethod(MuleMessage message)
throws Exception
- Throws:
Exception
getURI
protected URI getURI(MuleMessage message)
throws URISyntaxException,
TransformerException
- Throws:
URISyntaxException
TransformerException
setupEntityMethod
protected void setupEntityMethod(Object src,
String encoding,
MuleMessage msg,
EntityEnclosingMethod postMethod)
throws UnsupportedEncodingException,
TransformerException
- Throws:
UnsupportedEncodingException
TransformerException
setHeaders
protected void setHeaders(HttpMethod httpMethod,
MuleMessage msg)
throws TransformerException
- Throws:
TransformerException
createMultiPart
protected MultipartRequestEntity createMultiPart(MuleMessage msg,
EntityEnclosingMethod method)
throws Exception
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.