public class ObjectToHttpClientMethodRequest extends AbstractMessageAwareTransformer
ObjectToHttpClientMethodRequest
transforms a MuleMessage into a
HttpClient HttpMethod that represents an HttpRequest.DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
PHASE_NAME
Constructor and Description |
---|
ObjectToHttpClientMethodRequest() |
Modifier and Type | Method and Description |
---|---|
protected int |
addParameters(String queryString,
org.apache.commons.httpclient.methods.PostMethod postMethod,
MuleMessage msg) |
protected String |
paramToString(Object param) |
protected void |
setHeaders(org.apache.commons.httpclient.HttpMethod httpMethod,
MuleMessage msg) |
protected void |
setupEntityMethod(Object src,
String encoding,
MuleMessage msg,
URI uri,
org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod) |
Object |
transform(MuleMessage msg,
String outputEncoding) |
doTransform, isSourceTypeSupported
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
protected int addParameters(String queryString, org.apache.commons.httpclient.methods.PostMethod postMethod, MuleMessage msg)
public Object transform(MuleMessage msg, String outputEncoding) throws TransformerException
transform
in class AbstractMessageAwareTransformer
TransformerException
protected void setupEntityMethod(Object src, String encoding, MuleMessage msg, URI uri, org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod) throws UnsupportedEncodingException, TransformerException
protected void setHeaders(org.apache.commons.httpclient.HttpMethod httpMethod, MuleMessage msg)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.