FileDocCategorySizeDatePackage
Protocol.javaAPI DocphoneME MR2 API (J2ME)2577Wed May 02 18:00:44 BST 2007com.sun.midp.io.j2me.sip

Protocol

public class Protocol extends ProtocolBase
This class implements the necessary functionality for a SIP connection.

Fields Summary
Constructors Summary
Methods Summary
public javax.microedition.io.ConnectionopenPrim(java.lang.String name, int mode, boolean timeouts)
Sets up the state of the connection, but does not actually connect to the server until there's something to do.

param
name the URL for the connection, without the without the protocol part.
param
mode the access mode, ignored
param
timeouts flag to indicate that the caller wants timeout exceptions, ignored
return
reference to this connection
exception
IllegalArgumentException if a parameter is invalid
exception
ConnectionNotFoundException if the connection cannot be found
exception
IOException if some other kind of I/O error occurs

	
        /* Check the suite is permitted to use a SIP connection. */
        checkForPermission(name, "sip", Permissions.SIP);

        /*
         * Construct the SIP handler with the initialized
         * security token and invoke it's openPrim checks.
         */
        return openConn(name, "sip");