|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freeswitch.esl.client.transport.event.EslEvent
public class EslEvent
FreeSWITCH Event Socket events are decoded into this data object.
An ESL event is modelled as a collection of text lines. An event always has several eventHeader
lines, and optionally may have some eventBody lines. In addition the messageHeaders of the
original containing EslMessage which carried the event are also available.
The eventHeader lines are parsed and cached in a map keyed by the eventHeader name string. An event
is always expected to have an "Event-Name" eventHeader. Commonly used eventHeader names are coded
in EslEventHeaderNames
Any eventBody lines are cached in a list.
The messageHeader lines from the original message are cached in a map keyed by EslHeaders.Name.
EslEventHeaderNames| Constructor Summary | |
|---|---|
EslEvent(EslMessage rawMessage)
|
|
EslEvent(EslMessage rawMessage,
boolean parseCommandReply)
|
|
| Method Summary | |
|---|---|
List<String> |
getEventBodyLines()
Any event body lines that were present in the event. |
String |
getEventDateGmt()
Convenience method. |
String |
getEventDateLocal()
Convenience method. |
long |
getEventDateTimestamp()
Convenience method. |
Map<String,String> |
getEventHeaders()
The event headers of this event. |
String |
getEventName()
Convenience method. |
Map<EslHeaders.Name,String> |
getMessageHeaders()
The message headers of the original ESL message from which this event was decoded. |
boolean |
hasEventBody()
Convenience method. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EslEvent(EslMessage rawMessage)
public EslEvent(EslMessage rawMessage,
boolean parseCommandReply)
| Method Detail |
|---|
public Map<EslHeaders.Name,String> getMessageHeaders()
EslHeaders.Name. The string mapped value
is the parsed content of the header line (ie, it does not include the header name).
public Map<String,String> getEventHeaders()
public List<String> getEventBodyLines()
public String getEventName()
public long getEventDateTimestamp()
public String getEventDateLocal()
public String getEventDateGmt()
public boolean hasEventBody()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||