jp.ac.naka.ec.sip
クラス SipCore

java.lang.Object
  上位を拡張 jp.ac.naka.ec.sip.SipCore

public class SipCore
extends java.lang.Object

SIPリクエスト、レスポンスの送信を行うクラス。NOTIFYリクエストのの自動送信もになう。

作成者:
Takashi Kasuya

フィールドの概要
static int DEFAULT_EXPIRES
           
static java.lang.String event_package
           
static int PORT
           
static java.lang.String TRANSPORT
           
 
コンストラクタの概要
SipCore()
           
 
メソッドの概要
static SipCore getInstance()
          It retrieve an Instance of SipCore.
 void initialize(java.lang.String hostname, int sip_port)
           
 void sendAck(Entity target)
           
 void sendBye(Entity target)
           
 void sendInvite(javax.sdp.SessionDescription sdp, Entity target, Entity source)
          INVITE送信専用メソッド
 void sendRequest(Entity target, Entity source, java.lang.String method)
          Send a SIP Message by a specified method.
 void sendRequest(java.lang.String message, Entity target, Entity source, java.lang.String method)
           
 void sendResponse(int num, javax.sip.message.Request req)
          Send a SIP response by stateless.
 void sendResponse(int num, javax.sip.RequestEvent evt, java.lang.String sender_uri)
          Send a SIP response.
 void sendResponse(javax.sdp.SessionDescription sdp, javax.sip.message.Request req, javax.sip.address.SipURI target, javax.sip.address.SipURI source)
          ANSWER送信
 void sendSubscribe(Entity target, Entity source, int expire)
          SUBSCRIBE送信用
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_EXPIRES

public static int DEFAULT_EXPIRES

event_package

public static java.lang.String event_package

PORT

public static int PORT

TRANSPORT

public static java.lang.String TRANSPORT
コンストラクタの詳細

SipCore

public SipCore()
メソッドの詳細

initialize

public void initialize(java.lang.String hostname,
                       int sip_port)
                throws javax.sip.SipException,
                       java.io.IOException,
                       java.text.ParseException,
                       javax.sip.InvalidArgumentException,
                       java.util.TooManyListenersException
パラメータ:
name - Name of EntityContainer
hostname -
sip_port -
sip_config -
例外:
javax.sip.SipException
java.io.IOException
java.text.ParseException
javax.sip.InvalidArgumentException
java.util.TooManyListenersException

getInstance

public static SipCore getInstance()
It retrieve an Instance of SipCore.

戻り値:

sendResponse

public void sendResponse(int num,
                         javax.sip.message.Request req)
                  throws java.text.ParseException,
                         javax.sip.InvalidArgumentException,
                         javax.sip.SipException
Send a SIP response by stateless.

パラメータ:
num -
req -
例外:
java.text.ParseException
javax.sip.InvalidArgumentException
javax.sip.SipException

sendResponse

public void sendResponse(int num,
                         javax.sip.RequestEvent evt,
                         java.lang.String sender_uri)
                  throws java.text.ParseException,
                         javax.sip.SipException,
                         javax.sip.InvalidArgumentException
Send a SIP response. It holds a Dialog.

パラメータ:
num -
evt -
sender_uri -
例外:
java.text.ParseException
javax.sip.SipException
javax.sip.InvalidArgumentException

sendResponse

public void sendResponse(javax.sdp.SessionDescription sdp,
                         javax.sip.message.Request req,
                         javax.sip.address.SipURI target,
                         javax.sip.address.SipURI source)
ANSWER送信

パラメータ:
sdp -
req -
uri2 -

sendRequest

public void sendRequest(Entity target,
                        Entity source,
                        java.lang.String method)
                 throws javax.sip.SipException
Send a SIP Message by a specified method. It sends by stateless.

パラメータ:
target -
method -
例外:
javax.sip.SipException

sendRequest

public void sendRequest(java.lang.String message,
                        Entity target,
                        Entity source,
                        java.lang.String method)
                 throws javax.sip.SipException,
                        java.text.ParseException
パラメータ:
message -
target -
source -
method -
例外:
javax.sip.SipException
java.text.ParseException

sendInvite

public void sendInvite(javax.sdp.SessionDescription sdp,
                       Entity target,
                       Entity source)
                throws javax.sip.SipException,
                       java.text.ParseException
INVITE送信専用メソッド

パラメータ:
sdp -
target -
source -
例外:
javax.sip.SipException
java.text.ParseException

sendSubscribe

public void sendSubscribe(Entity target,
                          Entity source,
                          int expire)
                   throws javax.sip.SipException
SUBSCRIBE送信用

パラメータ:
target -
source -
subscribe -
default_expires2 -
例外:
javax.sip.SipException

sendBye

public void sendBye(Entity target)
             throws javax.sip.SipException
例外:
javax.sip.SipException

sendAck

public void sendAck(Entity target)