public class UdpMessageAdapter extends AbstractMessageAdapter
UdpMessageAdapter
ThreadSafeAccess.AccessControl
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_PROPERTY |
static String |
PORT_PROPERTY |
attachments, encoding, exceptionPayload, id, logger, properties
READ, WRITE
Modifier | Constructor and Description |
---|---|
|
UdpMessageAdapter(Object message) |
protected |
UdpMessageAdapter(UdpMessageAdapter template) |
Modifier and Type | Method and Description |
---|---|
Object |
getPayload() |
byte[] |
getPayloadAsBytes() |
String |
getPayloadAsString(String encoding)
Converts the message implementation into a String representation
|
ThreadSafeAccess |
newThreadCopy() |
addAttachment, addInboundProperties, addProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, isDisabled, newException, release, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString
public static final String ADDRESS_PROPERTY
public static final String PORT_PROPERTY
public UdpMessageAdapter(Object message) throws MessageTypeNotSupportedException
MessageTypeNotSupportedException
protected UdpMessageAdapter(UdpMessageAdapter template)
public String getPayloadAsString(String encoding) throws Exception
encoding
- The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte arrayException
- Implementation may throw an endpoint specific exceptionpublic Object getPayload()
public ThreadSafeAccess newThreadCopy()
AbstractMessageAdapter
newThreadCopy
in interface ThreadSafeAccess
newThreadCopy
in class AbstractMessageAdapter
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.