public class DefaultAdaptrisMessageImp extends AdaptrisMessageImp
AdaptrisMessage
implementation created by DefaultMessageFactory
Modifier | Constructor and Description |
---|---|
protected |
DefaultAdaptrisMessageImp(IdGenerator guid,
AdaptrisMessageFactory fac) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this object.
|
boolean |
equivalentForTracking(AdaptrisMessage other)
AdaptrisMessage 's are equivalent for tracking if they
have the same unique Id, their payloads are equal, their char encodings are
equal and their metadata is equal. |
java.lang.String |
getContent() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
byte[] |
getPayload()
Returns a copy of this message's payload in its raw,
byte[] form. |
long |
getSize()
Return the size of the payload.
|
void |
setContent(java.lang.String payloadString,
java.lang.String charEnc) |
void |
setPayload(byte[] bytes)
Sets the passed
byte[] as this message's payload. |
addEvent, addMessageHeader, addMetadata, addMetadata, addObjectHeader, areEqual, clearMetadata, copyPayload, encode, getContentEncoding, getFactory, getMessageHeaders, getMessageLifecycleEvent, getMetadata, getMetadata, getMetadataValue, getMetadataValueIgnoreKeyCase, getNextServiceId, getObjectHeaders, getReader, getUniqueId, getWriter, getWriter, headersContainsKey, removeMessageHeader, removeMetadata, resolve, setContentEncoding, setMessageHeaders, setMetadata, setNextServiceId, setUniqueId, toString, toString, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addObjectMetadata, containsKey, getCharEncoding, getObjectMetadata, getPayloadForLogging, getStringPayload, setCharEncoding, setStringPayload, setStringPayload
resolve, wrap
protected DefaultAdaptrisMessageImp(IdGenerator guid, AdaptrisMessageFactory fac) throws java.lang.RuntimeException
java.lang.RuntimeException
public boolean equivalentForTracking(AdaptrisMessage other)
AdaptrisMessage
AdaptrisMessage
's are equivalent for tracking if they
have the same unique Id, their payloads are equal, their char encodings are
equal and their metadata is equal. NB equality of metadata is based on key
only.
other
- the message to compare(com.adaptris.core.AdaptrisMessage)
public void setPayload(byte[] bytes)
AdaptrisMessage
Sets the passed byte[]
as this message's payload.
bytes
- the payloadAdaptrisMessage.setPayload(byte[])
public byte[] getPayload()
AdaptrisMessage
Returns a copy of this message's payload in its raw,
byte[]
form.
byte[]
formAdaptrisMessage.getPayload()
public long getSize()
AdaptrisMessage
AdaptrisMessage.getSize()
public void setContent(java.lang.String payloadString, java.lang.String charEnc)
public java.lang.String getContent()
InterlokMessage.getContent()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
AdaptrisMessage
Returns a deep clone of this object.
clone
in interface AdaptrisMessage
clone
in class AdaptrisMessageImp
java.lang.CloneNotSupportedException
- if the implementation does not support
cloningObject.clone()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
InterlokMessage.getInputStream()
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
InterlokMessage.getOutputStream()