|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractMessageAdapter
org.mule.providers.http.HttpMessageAdapter
public class HttpMessageAdapter
HttpMessageAdapter
Wraps an incoming Http Request making the
payload and headers available as standard message adapter.
Field Summary |
---|
Fields inherited from class org.mule.providers.AbstractMessageAdapter |
---|
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE |
Constructor Summary | |
---|---|
protected |
HttpMessageAdapter(HttpMessageAdapter template)
|
|
HttpMessageAdapter(Object message)
|
Method Summary | |
---|---|
Header |
getHeader(String name)
|
Object |
getPayload()
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a byte array representation |
String |
getPayloadAsString(String encoding)
Converts the message implementation into a String representation |
Object |
getProperty(String key)
Gets a property of the message implementation |
ThreadSafeAccess |
newThreadCopy()
By default we return "this". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpMessageAdapter(Object message) throws MessageTypeNotSupportedException
MessageTypeNotSupportedException
protected HttpMessageAdapter(HttpMessageAdapter template)
Method Detail |
---|
public Object getPayload()
public byte[] getPayloadAsBytes() throws Exception
UMOMessageAdapter
Exception
- Implemetation may throw an endpoint specific exceptionpublic String getPayloadAsString(String encoding) throws Exception
UMOMessageAdapter
encoding
- The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
Exception
- Implementation may throw an endpoint specific exceptionpublic Object getProperty(String key)
UMOMessageAdapter
getProperty
in interface UMOMessageAdapter
getProperty
in class AbstractMessageAdapter
key
- the key on which to lookup the property value
public Header getHeader(String name)
public ThreadSafeAccess newThreadCopy()
AbstractMessageAdapter
newThreadCopy
in interface ThreadSafeAccess
newThreadCopy
in class AbstractMessageAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |