org.psepr.jClient
Class PsEPREvent
java.lang.Object
org.psepr.jClient.PsEPREvent
public class PsEPREvent
- extends java.lang.Object
The object that holds a received event.
The user's part of the event is kept in the 'payload' method.
- Author:
- Robert.Adams@intel.com
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distributionOne
public static final java.lang.String distributionOne
- See Also:
- Constant Field Values
distributionAll
public static final java.lang.String distributionAll
- See Also:
- Constant Field Values
PsEPREvent
public PsEPREvent()
PsEPREvent
public PsEPREvent(PsEPREvent ev)
- Copy constructor. Someday this will do a deep copy by also
copying new instances of the included objects.
- Parameters:
ev -
getMessageID
public java.lang.String getMessageID()
setMessageID
public void setMessageID(java.lang.String xx)
getEventID
public java.lang.String getEventID()
setEventID
public void setEventID(java.lang.String xx)
getToChannel
public java.lang.String getToChannel()
setToChannel
public void setToChannel(java.lang.String toc)
getToService
public java.lang.String getToService()
setToService
public void setToService(java.lang.String tos)
getToInstance
public java.lang.String getToInstance()
setToInstance
public void setToInstance(java.lang.String toi)
getFromService
public java.lang.String getFromService()
setFromService
public void setFromService(java.lang.String fromc)
getFromInstance
public java.lang.String getFromInstance()
setFromInstance
public void setFromInstance(java.lang.String fromi)
getDistribution
public java.lang.String getDistribution()
setDistribution
public void setDistribution(java.lang.String dist)
getPayload
public Payload getPayload()
setPayload
public void setPayload(Payload pl)
toXML
public void toXML(java.io.Writer wtr)
toXML
public java.lang.String toXML()
- Print out the XML with a little paging format
- Parameters:
pretty - true if to make pretty
- Returns:
toXML
public java.lang.String toXML(boolean flag)
- Compatability for old call that had pretty printed embedded in this routine.
- Parameters:
flag - ignored (used to say whether to pretty print or not)
- Returns:
- string containing XML of this event