org.restlet.ext.sip
Class Event

java.lang.Object
  extended by org.restlet.ext.sip.Event

public class Event
extends Object

Describes a SIP event. Used by the SIP "Event" header.

Author:
Thierry Boileau

Constructor Summary
Event()
          Constructor.
Event(String id)
          Constructor.
Event(String id, EventType type)
          Constructor.
 
Method Summary
 String getId()
          Returns the event identifier.
 Series<Parameter> getParameters()
          Returns the event parameters.
 EventType getType()
          Returns the type of the event.
 void setId(String id)
          Sets the event identifier.
 void setParameters(Series<Parameter> parameters)
          Sets the event parameters.
 void setType(EventType type)
          Sets the type of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
Constructor.


Event

public Event(String id)
Constructor.

Parameters:
id - The event identifier.

Event

public Event(String id,
             EventType type)
Constructor.

Parameters:
id - The event identifier.
type - The type of the event.
Method Detail

getId

public String getId()
Returns the event identifier.

Returns:
The event identifier.

getParameters

public Series<Parameter> getParameters()
Returns the event parameters.

Returns:
The event parameters.

getType

public EventType getType()
Returns the type of the event.

Returns:
The type of the event.

setId

public void setId(String id)
Sets the event identifier.

Parameters:
id - The event identifier.

setParameters

public void setParameters(Series<Parameter> parameters)
Sets the event parameters.

Parameters:
parameters - The event parameters.

setType

public void setType(EventType type)
Sets the type of the event.

Parameters:
type - The type of the event.


Copyright © 2005-2013 Restlet.