org.mitre.jsip
Class Sip

java.lang.Object
  |
  +--org.mitre.jsip.Sip

public class Sip
extends java.lang.Object


Field Summary
static int ACK
           
static int BadMethod
           
static int BYE
           
static int CANCEL
           
static int INFO
           
static int INVITE
           
static int MESSAGE
           
static int NOTIFY
           
static int OPTIONS
           
static int REFER
           
static int REGISTER
           
static int SUBSCRIBE
           
 
Constructor Summary
Sip()
          Sip
 
Method Summary
static java.lang.String getBasicResponse(java.lang.String user, java.lang.String password)
          getBasicResponse
static java.lang.String getDigestResponse(java.lang.String user, java.lang.String password, java.lang.String method, java.lang.String requri, java.lang.String authstr)
          getDigestResponse
static java.lang.String getLocalAddress()
          getLocalAddress
static int getLocalPort()
          Get the port we will be listening to
static java.lang.String getMethodString(int m)
          getMethodString
static int matchMethod(java.lang.String m)
          matchMethod
static void setLocalAddress(java.lang.String localaddr)
          setLocalAddress
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVITE

public static final int INVITE

ACK

public static final int ACK

BYE

public static final int BYE

OPTIONS

public static final int OPTIONS

CANCEL

public static final int CANCEL

REGISTER

public static final int REGISTER

MESSAGE

public static final int MESSAGE

SUBSCRIBE

public static final int SUBSCRIBE

NOTIFY

public static final int NOTIFY

INFO

public static final int INFO

REFER

public static final int REFER

BadMethod

public static final int BadMethod
Constructor Detail

Sip

public Sip()
Sip
Method Detail

getMethodString

public static java.lang.String getMethodString(int m)
getMethodString
Parameters:
m -  
Returns:
String

matchMethod

public static int matchMethod(java.lang.String m)
matchMethod
Parameters:
m -  
Returns:
Method

getLocalAddress

public static java.lang.String getLocalAddress()
getLocalAddress
Returns:
String

getLocalPort

public static int getLocalPort()
Get the port we will be listening to
Returns:
a sip port number

setLocalAddress

public static void setLocalAddress(java.lang.String localaddr)
setLocalAddress
Parameters:
localaddr -  

getDigestResponse

public static java.lang.String getDigestResponse(java.lang.String user,
                                                 java.lang.String password,
                                                 java.lang.String method,
                                                 java.lang.String requri,
                                                 java.lang.String authstr)
getDigestResponse
Parameters:
user -  
password -  
method -  
requri -  
authstr -  
Returns:
String

getBasicResponse

public static java.lang.String getBasicResponse(java.lang.String user,
                                                java.lang.String password)
getBasicResponse
Parameters:
user -  
password -  
Returns:
String