public interface IDataPayload extends Externalizable
| Modifier and Type | Field and Description |
|---|---|
static int |
PAYLOAD_TYPE_HEADER |
static int |
PAYLOAD_TYPE_JPG |
static int |
PAYLOAD_TYPE_MULTI |
static int |
PAYLOAD_TYPE_SMS |
static int |
PAYLOAD_TYPE_TEXT
Data payload codes
|
static int |
PAYLOAD_TYPE_XML |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(IDataPayloadVisitor<T> visitor)
Visitor pattern accept method.
|
long |
getLength() |
String |
getPayloadId() |
InputStream |
getPayloadStream()
Gets the stream for this payload.
|
int |
getPayloadType() |
int |
getTransportId() |
readExternal, writeExternalstatic final int PAYLOAD_TYPE_TEXT
static final int PAYLOAD_TYPE_XML
static final int PAYLOAD_TYPE_JPG
static final int PAYLOAD_TYPE_HEADER
static final int PAYLOAD_TYPE_MULTI
static final int PAYLOAD_TYPE_SMS
InputStream getPayloadStream() throws IOException
IOExceptionString getPayloadId()
int getPayloadType()
<T> T accept(IDataPayloadVisitor<T> visitor)
visitor - The visitor to visit this payload.long getLength()
int getTransportId()
Copyright © 2023. All rights reserved.