public final class ProcessResponseWrapper
extends java.lang.Object
implements java.io.Serializable
The ProcessResponseWrapper
class servers two major purposes:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
ProcessResponseWrapper()
Default constructor needed by deserialization.
|
ProcessResponseWrapper(java.lang.Object message,
CustomClientSettings setting)
Constructor that stores the passed objects.
|
Modifier and Type | Method and Description |
---|---|
static ProcessResponseWrapper |
fromByteArray(byte[] buffer,
CustomClientSettings setting)
Factory method that creates a ProcessResponseWrapper from a byte array and custom client setting.
|
CustomClientSettings |
getClientUISettings()
Returns the custom client settings associated to the message.
|
java.lang.Object |
getMessage()
Returns the wrapped object, the message.
|
public static final java.lang.String COPYRIGHT
public ProcessResponseWrapper()
null
.public ProcessResponseWrapper(java.lang.Object message, CustomClientSettings setting)
message
- The message to be returned.
The message
must implement java.io.Serializable
.setting
- The custom client settings associated with the message.public static ProcessResponseWrapper fromByteArray(byte[] buffer, CustomClientSettings setting)
buffer
- The serialized message to wrap.setting
- The custom client settings associated with the message.public java.lang.Object getMessage() throws ProcessException
If the ProcessResponseWrapper
has been serialized,
then deserialized and this is the first time the message is accessed,
the message is deserialized before it is returned.
If the ProcessResponseWrapper
has never been serialized,
or the message has been accessed before,
the message is returned without deserialization.
ProcessException
- if an error occurrs during deserialization of the message.public CustomClientSettings getClientUISettings()