FileDocCategorySizeDatePackage
SipServerConnection.javaAPI DocphoneME MR2 API (J2ME)2302Wed May 02 18:00:42 BST 2007javax.microedition.sip

SipServerConnection

public interface SipServerConnection implements SipConnection
SipServerConnection represents SIP server transaction.
see
JSR180 spec, v 1.0.1, p 33-36

Fields Summary
Constructors Summary
Methods Summary
public voidinitResponse(int code)
Initializes SipServerConnection with a specific SIP response to the received request.

see
JSR180 spec, v 1.0.1, p 36
param
code - Response status code 1xx - 6xx
throws
IllegalArgumentException - if the status code is out of range 100-699 (RFC 3261 p.28-29)
throws
SipException - INVALID_STATE if the response can not be initialized, because of wrong state.

public voidsetReasonPhrase(java.lang.String phrase)
Changes the default reason phrase.

param
phrase - the default reason phrase.
throws
SipException - INVALID_STATE if the response can not be initialized, because of wrong state. INVALID_OPERATION if the reason phrase can not be set.
throws
IllegalArgumentException - if the reason phrase is illegal.