SipClientConnectionpublic interface SipClientConnection implements SipConnectionSipClientConnection represents SIP client transaction.
Application can create a new SipClientConnection with Connector
or SipDialog object. |
Methods Summary |
---|
public int | enableRefresh(javax.microedition.sip.SipRefreshListener srl)Enables the refresh on for the request to be sent. The method return a
refresh ID, which can be used to update or stop the refresh.
| public void | initAck()Convenience method to initialize SipClientConnection with SIP request
method ACK. ACK can be applied only to INVITE request.
| public javax.microedition.sip.SipClientConnection | initCancel()Convenience method to initialize SipClientConnection with SIP request
method CANCEL.
| public void | initRequest(java.lang.String method, javax.microedition.sip.SipConnectionNotifier scn)Initializes SipClientConnection to a specific SIP
request method (REGISTER, INVITE, MESSAGE, ...).
| public boolean | receive(long timeout)Receives SIP response message. The receive method will update the
SipClientConnection with the last new received response.
If no message is received the method will block until something is
received or specified amount of time has elapsed.
| public void | setCredentials(java.lang.String username, java.lang.String password, java.lang.String realm)Sets credentials for possible digest authentication.
| public void | setListener(javax.microedition.sip.SipClientConnectionListener sccl)Sets the listener for incoming responses. If a listener is
already set it
will be overwritten. Setting listener to null will remove the current
listener.
| public void | setRequestURI(java.lang.String URI)Sets Request-URI explicitly. Request-URI can be set only in
Initialized state.
|
|