Asterisk-Java

org.asteriskjava.manager.event
Class RegistryEntryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.ResponseEvent
              extended by org.asteriskjava.manager.event.RegistryEntryEvent
All Implemented Interfaces:
java.io.Serializable

public class RegistryEntryEvent
extends ResponseEvent

A RegistryEntry is triggered in response to a SipShowRegistryAction and contains information about a SIP registration.

It is implemented in channels/chan_sip.c

Since:
1.0.0
Version:
$Id: RegistryEntryEvent.java 1166 2008-09-18 02:41:44Z sprior $
Author:
Laureano
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RegistryEntryEvent(java.lang.Object source)
          Creates a new instance.
 
Method Summary
 java.lang.String getHost()
          Returns the IP address or hostname used for the registration.
 java.lang.Integer getPort()
          Returns the port number used for the registration.
 java.lang.Integer getRefresh()
          Returns the value of refresh.
 java.lang.Long getRegistrationTime()
          Returns the epoch since the last registration.
 java.lang.String getState()
          Returns the value of state.
 java.lang.String getUsername()
          Returns the username used for the registration.
 void setHost(java.lang.String host)
          Set the IP address or hostname used for the registration.
 void setPort(java.lang.Integer port)
          Sets the port number used for the registration.
 void setRefresh(java.lang.Integer refresh)
          Set the value of refresh.
 void setRegistrationTime(java.lang.String registrationTime)
          Sets the epoch (unix Timestamp) of the last registration.
 void setState(java.lang.String state)
          Set the value of state.
 void setUsername(java.lang.String username)
          Sets the username used for the registration.
 
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent
getActionId, getInternalActionId, setActionId, setInternalActionId
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryEntryEvent

public RegistryEntryEvent(java.lang.Object source)
Creates a new instance.

Parameters:
source -
Method Detail

getRegistrationTime

public java.lang.Long getRegistrationTime()
Returns the epoch since the last registration.

Returns:
epoch since the last registration.

setRegistrationTime

public void setRegistrationTime(java.lang.String registrationTime)
Sets the epoch (unix Timestamp) of the last registration. Will be casted to Long.

Parameters:
registrationTime - the epoch of the last registration.

getPort

public java.lang.Integer getPort()
Returns the port number used for the registration.

Returns:
the port number.

setPort

public void setPort(java.lang.Integer port)
Sets the port number used for the registration.

Parameters:
port - the port number.

getUsername

public java.lang.String getUsername()
Returns the username used for the registration.

Returns:
the username.

setUsername

public void setUsername(java.lang.String username)
Sets the username used for the registration.

Parameters:
username - the username.

getHost

public java.lang.String getHost()
Returns the IP address or hostname used for the registration.

Returns:
the IP address or the hostname.

setHost

public void setHost(java.lang.String host)
Set the IP address or hostname used for the registration.

Parameters:
host - IP address or hostname.

getState

public java.lang.String getState()
Returns the value of state.

Returns:
the value of state

setState

public void setState(java.lang.String state)
Set the value of state.

Parameters:
state - new value of state

getRefresh

public java.lang.Integer getRefresh()
Returns the value of refresh.

Returns:
the value of refresh.

setRefresh

public void setRefresh(java.lang.Integer refresh)
Set the value of refresh.

Parameters:
refresh - new value of refresh

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.