public class ModelReferencePayload extends Object implements IDataPayload
PAYLOAD_TYPE_HEADER, PAYLOAD_TYPE_JPG, PAYLOAD_TYPE_MULTI, PAYLOAD_TYPE_SMS, PAYLOAD_TYPE_TEXT, PAYLOAD_TYPE_XML| Constructor and Description |
|---|
ModelReferencePayload() |
ModelReferencePayload(int modelRecordId) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(IDataPayloadVisitor<T> visitor)
Visitor pattern accept method.
|
String |
getDestination() |
long |
getLength() |
String |
getPayloadId() |
InputStream |
getPayloadStream()
Gets the stream for this payload.
|
int |
getPayloadType() |
int |
getTransportId() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setDestination(String destination) |
void |
setSerializer(IInstanceSerializingVisitor serializer) |
void |
writeExternal(DataOutputStream out) |
public ModelReferencePayload()
public ModelReferencePayload(int modelRecordId)
public void setSerializer(IInstanceSerializingVisitor serializer)
serializer - the serializer to setpublic <T> T accept(IDataPayloadVisitor<T> visitor)
IDataPayloadaccept in interface IDataPayloadvisitor - The visitor to visit this payload.public long getLength()
getLength in interface IDataPayloadpublic String getPayloadId()
getPayloadId in interface IDataPayloadpublic InputStream getPayloadStream() throws IOException
IDataPayloadgetPayloadStream in interface IDataPayloadIOExceptionpublic int getPayloadType()
getPayloadType in interface IDataPayloadpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic int getTransportId()
getTransportId in interface IDataPayloadpublic void setDestination(String destination)
public String getDestination()
Copyright © 2022. All rights reserved.