public class ObjectToHttpClientMethodRequest
extends org.mule.transformer.AbstractMessageTransformer
ObjectToHttpClientMethodRequest transforms a MuleMessage into a
HttpClient HttpMethod that represents an HttpRequest.| Constructor and Description |
|---|
ObjectToHttpClientMethodRequest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpMethod |
createDeleteMethod(org.mule.api.MuleMessage message) |
protected org.apache.commons.httpclient.HttpMethod |
createGetMethod(org.mule.api.MuleMessage msg,
String outputEncoding) |
protected org.apache.commons.httpclient.HttpMethod |
createHeadMethod(org.mule.api.MuleMessage message) |
protected org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity |
createMultiPart(org.mule.api.MuleMessage msg,
org.apache.commons.httpclient.methods.EntityEnclosingMethod method) |
protected org.apache.commons.httpclient.HttpMethod |
createOptionsMethod(org.mule.api.MuleMessage message) |
protected org.apache.commons.httpclient.HttpMethod |
createPatchMethod(org.mule.api.MuleMessage message,
String outputEncoding) |
protected org.apache.commons.httpclient.HttpMethod |
createPostMethod(org.mule.api.MuleMessage msg,
String outputEncoding) |
protected org.apache.commons.httpclient.HttpMethod |
createPutMethod(org.mule.api.MuleMessage msg,
String outputEncoding) |
protected org.apache.commons.httpclient.HttpMethod |
createTraceMethod(org.mule.api.MuleMessage message) |
protected String |
detectHttpMethod(org.mule.api.MuleMessage msg) |
protected String |
getBodyParameterName(org.mule.api.MuleMessage message) |
protected URI |
getURI(org.mule.api.MuleMessage message) |
protected void |
setHeaders(org.apache.commons.httpclient.HttpMethod httpMethod,
org.mule.api.MuleMessage msg) |
protected void |
setupEntityMethod(Object src,
String encoding,
org.mule.api.MuleMessage msg,
org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod) |
Object |
transformMessage(org.mule.api.MuleMessage msg,
String outputEncoding) |
checkReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transformdispose, generateTransformerName, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, unregisterSourceType, unregisterSourceTypegetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transformpublic Object transformMessage(org.mule.api.MuleMessage msg, String outputEncoding) throws org.mule.api.transformer.TransformerException
transformMessage in class org.mule.transformer.AbstractMessageTransformerorg.mule.api.transformer.TransformerExceptionprotected String detectHttpMethod(org.mule.api.MuleMessage msg)
protected org.apache.commons.httpclient.HttpMethod createGetMethod(org.mule.api.MuleMessage msg,
String outputEncoding)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createPostMethod(org.mule.api.MuleMessage msg,
String outputEncoding)
throws Exception
Exceptionprotected String getBodyParameterName(org.mule.api.MuleMessage message)
protected org.apache.commons.httpclient.HttpMethod createPutMethod(org.mule.api.MuleMessage msg,
String outputEncoding)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createDeleteMethod(org.mule.api.MuleMessage message)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createHeadMethod(org.mule.api.MuleMessage message)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createOptionsMethod(org.mule.api.MuleMessage message)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createTraceMethod(org.mule.api.MuleMessage message)
throws Exception
Exceptionprotected org.apache.commons.httpclient.HttpMethod createPatchMethod(org.mule.api.MuleMessage message,
String outputEncoding)
throws Exception
Exceptionprotected URI getURI(org.mule.api.MuleMessage message) throws URISyntaxException, org.mule.api.transformer.TransformerException
URISyntaxExceptionorg.mule.api.transformer.TransformerExceptionprotected void setupEntityMethod(Object src, String encoding, org.mule.api.MuleMessage msg, org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod) throws UnsupportedEncodingException, org.mule.api.transformer.TransformerException
UnsupportedEncodingExceptionorg.mule.api.transformer.TransformerExceptionprotected void setHeaders(org.apache.commons.httpclient.HttpMethod httpMethod,
org.mule.api.MuleMessage msg)
throws org.mule.api.transformer.TransformerException
org.mule.api.transformer.TransformerExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.