|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.psepr.jClient.EventExtension
public class EventExtension
Class to handle the interface between the Smack packet extensions and the PsEPR events. This makes this class a little muddled since it acts as both the container for the data (PacketExtension/EventExtension) and the processor of the Event part of the packets as they come in. Thus there is a constructor that passes an PsEPREvent which creates the container view and a constructor that takes a lease collection. Don't be confused by this class' two faces.
| Constructor Summary | |
|---|---|
EventExtension()
|
|
EventExtension(LeaseCollection lc)
Create an instance when used as a PacketExtensionProvider |
|
EventExtension(PsEPREvent ev)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getElementName()
Return the element name. |
PsEPREvent |
getEvent()
|
LeaseCollection |
getLeaseCollection()
|
java.lang.String |
getNamespace()
Return the namespace. |
org.jivesoftware.smack.packet.PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
|
void |
setEvent(PsEPREvent ev)
|
void |
setLeaseCollection(LeaseCollection lc)
|
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventExtension()
public EventExtension(LeaseCollection lc)
lc - public EventExtension(PsEPREvent ev)
| Method Detail |
|---|
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionPacketExtension.getElementName()public java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionPacketExtension.getNamespace()public PsEPREvent getEvent()
public void setEvent(PsEPREvent ev)
public LeaseCollection getLeaseCollection()
public void setLeaseCollection(LeaseCollection lc)
public java.lang.String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtension
public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
throws java.lang.Exception
parseExtension in interface org.jivesoftware.smack.provider.PacketExtensionProviderjava.lang.ExceptionPacketExtensionProvider.parseExtension(org.xmlpull.v1.XmlPullParser)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||