|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
This interface represents an event
that can be sent to an EventBroker service.
| Field Summary | |
static String |
ACK
Response type: ack |
static String |
NONE
Response type: none |
static String |
RESULT
Response type: result |
static int |
SERIALIZE_FORMAT_DOCUMENT
Serialize format: document |
static int |
SERIALIZE_FORMAT_STRING
Serialize format: string |
| Method Summary | |
Object |
getBody()
Get body of this event. |
String |
getCredentialsDomain()
Get authentication domain associated with this event sender's credentials. |
String |
getCredentialsName()
Get credentials name. |
String |
getCredentialsPW()
Get credentials password. |
String |
getCredentialsSessionContextId()
Get session context id associated with this event sender's credentials. |
String |
getCredentialsSessionContextLockId()
Get session context lock id associated with this event sender's credentials. |
String |
getFrom()
Get event origination. |
String |
getIdentity()
Get event identity. |
String |
getName()
Get event name. |
int |
getPriority()
Get event priority. |
Map |
getProperties()
Get properties associated with this event. |
String |
getResponseType()
Get the response type associated with this event. |
String |
getTime()
Get date/time stamp set for this event. |
double |
getVersion()
Get event version. |
Object |
serialize(int format)
Serialize this event into the specified format so that it can be sent to a broker for processing. |
void |
setBody(Node node)
Set body for this event. |
void |
setBody(String body)
Set body for this event. |
void |
setCredentials(String sessionContextId,
String sessionContextLockId)
Set credentials. |
void |
setCredentials(String name,
String password,
String domain)
Set credentials. |
void |
setFrom(String from)
Set event origination. |
void |
setIdentity(String identity)
Set event identity. |
void |
setName(String eventName)
Set event name. |
void |
setPriority(int priority)
Set event priority. |
void |
setProperties(Map map)
Set properties to be associated with this event. |
void |
setResponseType(String responseType)
Set the response type that is desired. |
void |
setTime(String time)
Set a date/time stamp for this event. |
void |
setVersion(double version)
Set event version. |
| Field Detail |
public static final int SERIALIZE_FORMAT_STRING
public static final int SERIALIZE_FORMAT_DOCUMENT
public static final String NONE
public static final String ACK
public static final String RESULT
| Method Detail |
public void setName(String eventName)
eventName - Event name.public String getName()
public void setVersion(double version)
version - Event version.public double getVersion()
public void setIdentity(String identity)
identity - Event identity.public String getIdentity()
public void setCredentials(String name,
String password,
String domain)
name - Name of principal sending the event.password - Password of principal sending the event.domain - Authentication domain associated with this principal.
public void setCredentials(String sessionContextId,
String sessionContextLockId)
An alternative to using name, password, and domain. Allows the sender of an event to specify a session context that is bound to an already authenticated user context.
sessionContextId - session context id associated with authenticated user context.sessionContextLockId - lock on the session context if applicable.public String getCredentialsName()
public String getCredentialsPW()
public String getCredentialsDomain()
public String getCredentialsSessionContextId()
public String getCredentialsSessionContextLockId()
public void setPriority(int priority)
Setting a priority does not change the processing order of
incoming events. It simply sets the Java thread priority
that the broker processing thread runs as.
Valid values are between java.lang.Thread.MIN_PRIORITY and
java.lang.Thread.MAX_PRIORITY.
priority - Event priority.public int getPriority()
public void setFrom(String from)
Can include "who/where" descriptive information that describes the event origination.
from - information that describes where the event originated from.public String getFrom()
public void setTime(String time)
If a date/time is not set for this event, it will automatically be generated during serialization.
time - date/time GMT.public String getTime()
public void setResponseType(String responseType)
Valid types are as follows:
responseType - Type of response to be generated by broker.public String getResponseType()
public void setProperties(Map map)
To apply namespaces to individual properties, prefix the name of the property with its desired namespace followed by a : (semi-colon) character.
map - name/value pairs.public Map getProperties()
public void setBody(String body)
body - application body for this event.public void setBody(Node node)
Node must be one of the following types:
node - application body for this event.public Object getBody()
public Object serialize(int format)
format - Serialize format.null if serialization fails.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||