public final class XMPPEvent extends com.streamscape.sdo.event.AbstractMutableEvent implements EventDatagram
Title: Structured Data Objects: XMPP Event
Description: XMPP Event representation
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IQ_EVENT_ID |
static java.lang.String |
MESSAGE_EVENT_ID |
static java.lang.String |
PRESENCE_EVENT_ID |
static java.lang.String |
TYPE_AVAILABLE |
static java.lang.String |
TYPE_ERROR |
static java.lang.String |
TYPE_GET |
static java.lang.String |
TYPE_PROBE |
static java.lang.String |
TYPE_RESULT |
static java.lang.String |
TYPE_SET |
static java.lang.String |
TYPE_SUBSCRIBE |
static java.lang.String |
TYPE_SUBSCRIBED |
static java.lang.String |
TYPE_UNAVAILABLE |
static java.lang.String |
TYPE_UNSUBSCRIBE |
static java.lang.String |
TYPE_UNSUBSCRIBED |
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getBody()
Returns the xmpp message body.
|
java.lang.String |
getData()
Returns the xmpp message body.
|
java.lang.String |
getError()
Returns the xmpp error text or
null if no error occurred. |
int |
getErrorCode()
Returns the xmpp error code or
-1 if no error occurred. |
java.lang.String |
getFrom()
Returns the jabber id of the event sender.
|
java.lang.String |
getId()
Returns the id of the event xmpp-stanza.
|
int |
getPriority()
Returns the xmpp message priority or
-1 if the message type is not. |
java.lang.String |
getShow()
Returns the show-property of xmpp presence stanza.
|
java.lang.String |
getStatus()
Returns the status for xmpp presence stanza.
|
java.lang.String |
getSubject()
Returns the xmpp message subject.
|
java.lang.String |
getThread()
Returns the xmpp message thread.
|
java.lang.String |
getTo()
Returns the jabber id of the event recipient.
|
java.lang.String |
getType()
Returns the type of the event xmpp-stanza.
|
void |
setBody(java.lang.String body)
Sets the xmpp message body.
|
void |
setData(java.lang.String data)
Sets the xmpp message body.
|
void |
setError(java.lang.String error)
Sets the xmpp error text.
|
void |
setErrorCode(int errorCode)
Sets the xmpp error code.
|
void |
setFrom(java.lang.String from)
Sets the jabber id of the event sender.
|
void |
setId(java.lang.String id)
Sets the id of the event xmpp-stanza.
|
void |
setPriority(int priority)
Sets the xmpp message priority.
|
void |
setShow(java.lang.String show)
Sets the show-property of xmpp presence stanza.
|
void |
setStatus(java.lang.String status)
Sets the status for xmpp presence stanza.
|
void |
setSubject(java.lang.String subject)
Sets the xmpp message subject.
|
void |
setThread(java.lang.String thread)
Sets the xmpp message thread.
|
void |
setTo(java.lang.String to)
Sets the jabber id of the event recipient.
|
void |
setType(java.lang.String type)
Sets the type of the event xmpp-stanza.
|
addAnnotation, clearEventProperties, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, clone, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getDurable, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventGroupId, getEventId, getEventIntProperty, getEventKey, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventSource, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTimestamp, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, hasSuitableAnnotationType, isProtected
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnnotation, canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp
getSerialVersionUID
public static final java.lang.String MESSAGE_EVENT_ID
public static final java.lang.String PRESENCE_EVENT_ID
public static final java.lang.String IQ_EVENT_ID
public static final java.lang.String TYPE_GET
public static final java.lang.String TYPE_SET
public static final java.lang.String TYPE_RESULT
public static final java.lang.String TYPE_ERROR
public static final java.lang.String TYPE_AVAILABLE
public static final java.lang.String TYPE_UNAVAILABLE
public static final java.lang.String TYPE_SUBSCRIBE
public static final java.lang.String TYPE_SUBSCRIBED
public static final java.lang.String TYPE_UNSUBSCRIBE
public static final java.lang.String TYPE_UNSUBSCRIBED
public static final java.lang.String TYPE_PROBE
public java.lang.String getTo()
public void setTo(java.lang.String to)
to
- the recipient jabber id to be set.public java.lang.String getFrom()
public void setFrom(java.lang.String from)
from
- the sender jabber id to be set.public java.lang.String getType()
TYPE_GET
and other stanza types.public void setType(java.lang.String type)
TYPE_GET
and other stanza types.type
- the xmpp-stanza type to be set.public java.lang.String getError()
null
if no error occurred.null
.public void setError(java.lang.String error)
error
- the xmpp error text to be set.public int getErrorCode()
-1
if no error occurred.-1
.public void setErrorCode(int errorCode)
errorCode
- the xmpp error code to be set.public int getPriority()
-1
if the message type is not.
See PRESENCE_EVENT_ID
-1
.public void setPriority(int priority)
priority
- the xmpp message priority to be set.public java.lang.String getId()
public void setId(java.lang.String id)
id
- the xmpp-stanza id to be set.public java.lang.String getThread()
public void setThread(java.lang.String thread)
thread
- the xmpp message thread to be set.public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- the xmpp message subject to be set.public java.lang.String getShow()
public void setShow(java.lang.String show)
show
- the show-property of xmpp presence stanza to be set.public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- the xmpp message body to be set.public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the status to be set for presence stanza.public java.lang.String getData()
public void setData(java.lang.String data)
data
- the xmpp message body to be set.public boolean equals(java.lang.Object other)
equals
in class com.streamscape.sdo.IAbstractDataEvent
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.