org.mitre.jsip
Class SipRegister

java.lang.Object
  |
  +--org.mitre.jsip.SipRegister
All Implemented Interfaces:
PollTask

public class SipRegister
extends java.lang.Object
implements PollTask


Constructor Summary
SipRegister(SipUser user, SipUri serveruri)
          SipRegister
 
Method Summary
 void activate()
          PollTask interface implementation
 int getAuthenticationType()
          getAuthenticationType
 java.lang.String getAuthRealm()
          getAuthRealm
 java.lang.String getProxyAuthRealm()
          getProxyAuthRealm
 SipCall getRegisterCall()
          getRegisterCall
 int getRegisterState()
          getRegisterState
 SipUri getServerUri()
          getServerUri
 void requestClearRegistration()
          Disable a registration to a Registrar server.
 void requestRegister(boolean clear)
          Request registration using already provided username and password
 void requestRegister(java.lang.String password)
          Requests registration from the proxy.
 void requestRegister(java.lang.String newPassword, boolean clear)
           
 void setAuthentication(SipResponseMessage respMessage)
          Sets the authentication required as detailed in a response message
 void setServerUri(SipUri newregserver)
          setServerUri
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipRegister

public SipRegister(SipUser user,
                   SipUri serveruri)
SipRegister
Parameters:
user -  
serveruri -  
Method Detail

getRegisterState

public int getRegisterState()
getRegisterState
Returns:
RegisterState

getAuthenticationType

public int getAuthenticationType()
getAuthenticationType
Returns:
AuthType

setAuthentication

public void setAuthentication(SipResponseMessage respMessage)
                       throws RegisterException
Sets the authentication required as detailed in a response message

getServerUri

public SipUri getServerUri()
getServerUri
Returns:
SipUri

setServerUri

public void setServerUri(SipUri newregserver)
setServerUri
Parameters:
newregserver -  

requestRegister

public void requestRegister(boolean clear)
                     throws RegisterException
Request registration using already provided username and password

requestRegister

public void requestRegister(java.lang.String password)
                     throws RegisterException
Requests registration from the proxy.

requestRegister

public void requestRegister(java.lang.String newPassword,
                            boolean clear)
                     throws RegisterException

requestClearRegistration

public void requestClearRegistration()
Disable a registration to a Registrar server. Does this by sending a REGISTER with "Expires: 0" to the server

getRegisterCall

public SipCall getRegisterCall()
getRegisterCall
Returns:
SipCall *

getAuthRealm

public java.lang.String getAuthRealm()
getAuthRealm
Returns:
String

getProxyAuthRealm

public java.lang.String getProxyAuthRealm()
getProxyAuthRealm
Returns:
String

activate

public void activate()
PollTask interface implementation
Specified by:
activate in interface PollTask