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

Protocol

public class Protocol extends com.sun.midp.io.j2me.sip.ProtocolBase
This class implements the necessary functionality for a SIPS connection. This class is a thin wrapper around the NIST JSR180 implementation of the sips URI protocol handler. This class handles the security token intialization and invokes the NIST handler.

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 SIPS connection. */
        checkForPermission(name, "sips", Permissions.SIPS);

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