|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventInterface
This interface represents an event
that can be sent to an EventBroker service
.
Field Summary | |
---|---|
static java.lang.String |
ACK
Deprecated. Response type: ack |
static java.lang.String |
NONE
Deprecated. Response type: none |
static java.lang.String |
RESULT
Deprecated. Response type: result |
static int |
SERIALIZE_FORMAT_DOCUMENT
Deprecated. Serialize format: document |
static int |
SERIALIZE_FORMAT_STRING
Deprecated. Serialize format: string |
Method Summary | |
---|---|
java.lang.Object |
getBody()
Deprecated. Get body of this event. |
java.lang.String |
getCredentialsDomain()
Deprecated. Get authentication domain associated with this event sender's credentials. |
java.lang.String |
getCredentialsName()
Deprecated. Get credentials name. |
java.lang.String |
getCredentialsPW()
Deprecated. Get credentials password. |
java.lang.String |
getCredentialsSessionContextId()
Deprecated. Get session context id associated with this event sender's credentials. |
java.lang.String |
getCredentialsSessionContextLockId()
Deprecated. Get session context lock id associated with this event sender's credentials. |
java.lang.String |
getFrom()
Deprecated. Get event origination. |
java.lang.String |
getIdentity()
Deprecated. Get event identity. |
java.lang.String |
getName()
Deprecated. Get event name. |
int |
getPriority()
Deprecated. Get event priority. |
java.util.Map |
getProperties()
Deprecated. Get properties associated with this event. |
java.lang.String |
getResponseType()
Deprecated. Get the response type associated with this event. |
java.lang.String |
getTime()
Deprecated. Get date/time stamp set for this event. |
double |
getVersion()
Deprecated. Get event version. |
java.lang.Object |
serialize(int format)
Deprecated. Serialize this event into the specified format so that it can be sent to a broker for processing. |
void |
setBody(org.w3c.dom.Node node)
Deprecated. Set body for this event. |
void |
setBody(java.lang.String body)
Deprecated. Set body for this event. |
void |
setCredentials(java.lang.String sessionContextId,
java.lang.String sessionContextLockId)
Deprecated. Set credentials. |
void |
setCredentials(java.lang.String name,
java.lang.String password,
java.lang.String domain)
Deprecated. Set credentials. |
void |
setFrom(java.lang.String from)
Deprecated. Set event origination. |
void |
setIdentity(java.lang.String identity)
Deprecated. Set event identity. |
void |
setName(java.lang.String eventName)
Deprecated. Set event name. |
void |
setPriority(int priority)
Deprecated. Set event priority. |
void |
setProperties(java.util.Map map)
Deprecated. Set properties to be associated with this event. |
void |
setResponseType(java.lang.String responseType)
Deprecated. Set the response type that is desired. |
void |
setTime(java.lang.String time)
Deprecated. Set a date/time stamp for this event. |
void |
setVersion(double version)
Deprecated. Set event version. |
Field Detail |
---|
static final int SERIALIZE_FORMAT_STRING
static final int SERIALIZE_FORMAT_DOCUMENT
static final java.lang.String NONE
static final java.lang.String ACK
static final java.lang.String RESULT
Method Detail |
---|
void setName(java.lang.String eventName)
eventName
- Event name.java.lang.String getName()
void setVersion(double version)
version
- Event version.double getVersion()
void setIdentity(java.lang.String identity)
identity
- Event identity.java.lang.String getIdentity()
void setCredentials(java.lang.String name, java.lang.String password, java.lang.String domain)
name
- Name of principal sending the event.password
- Password of principal sending the event.domain
- Authentication domain associated with this principal.void setCredentials(java.lang.String sessionContextId, java.lang.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.java.lang.String getCredentialsName()
java.lang.String getCredentialsPW()
java.lang.String getCredentialsDomain()
java.lang.String getCredentialsSessionContextId()
java.lang.String getCredentialsSessionContextLockId()
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.int getPriority()
void setFrom(java.lang.String from)
Can include "who/where" descriptive information that describes the event origination.
from
- information that describes where the event originated from.java.lang.String getFrom()
void setTime(java.lang.String time)
If a date/time is not set for this event, it will automatically be generated during serialization.
time
- date/time GMT.java.lang.String getTime()
void setResponseType(java.lang.String responseType)
Valid types are as follows:
responseType
- Type of response to be generated by broker.java.lang.String getResponseType()
void setProperties(java.util.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.java.util.Map getProperties()
void setBody(java.lang.String body)
body
- application body for this event.void setBody(org.w3c.dom.Node node)
Node must be one of the following types:
node
- application body for this event.java.lang.Object getBody()
java.lang.Object serialize(int format)
format
- Serialize format.
null
if serialization fails.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |