class RemoteEventData extends Object implements Serializable
RemoteEvent
and its associated
Object
(cookie) obtained from an EventLog
.Modifier and Type | Field and Description |
---|---|
private Object |
cookie
Cookie associated with the
RemoteEvent |
private boolean |
integrity
true if the last time this object was unmarshalled
integrity was being enforced, false otherwise. |
private MarshalledInstance |
mi
MarshalledObject that holds desired
RemoteEvent . |
private static long |
serialVersionUID |
Constructor and Description |
---|
RemoteEventData(RemoteEvent re,
Object cookie)
Creates a new RemoteEventData instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCookie() |
RemoteEvent |
getRemoteEvent() |
private void |
readObject(ObjectInputStream in)
Use
readObject method to capture whether or
not integrity was being enforced when this object was
unmarshalled, and to perform basic integrity checks. |
private void |
readObjectNoData()
We should always have data in the stream, if this method
gets called there is something wrong.
|
private static final long serialVersionUID
private MarshalledInstance mi
MarshalledObject
that holds desired
RemoteEvent
. Wrapping the remote event
permits deserialization to occur on demand on the
client-side.private final Object cookie
RemoteEvent
private transient boolean integrity
true
if the last time this object was unmarshalled
integrity was being enforced, false
otherwise.RemoteEventData(RemoteEvent re, Object cookie)
re
- value of re
field.cookie
- value of cookie
field.public RemoteEvent getRemoteEvent() throws ClassNotFoundException
ClassNotFoundException
public Object getCookie()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
method to capture whether or
not integrity was being enforced when this object was
unmarshalled, and to perform basic integrity checks.IOException
ClassNotFoundException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.