| java.lang.Object com.sun.midp.io.BluetoothProtocol com.sun.midp.io.j2me.btl2cap.Protocol
Field Summary | |
final static int | MAX_STACK_MTU Keeps maximum MTU supported by the BT stack. |
Constructor Summary | |
public | Protocol() Constructs an instance. |
MAX_STACK_MTU | final static int MAX_STACK_MTU(Code) | | Keeps maximum MTU supported by the BT stack.
|
Protocol | public Protocol()(Code) | | Constructs an instance.
|
clientConnection | protected Connection clientConnection(SecurityToken token, int mode) throws IOException(Code) | | Ensures that permissions are proper and creates client side connection.
Parameters: token - security token if passed by caller, or null Parameters: mode - I/O access mode proper L2CAPConnectionImpl instance exception: IOException - if openning connection fails. |
openPrim | public Connection openPrim(Object token, BluetoothUrl url, int mode) throws IOException(Code) | | Cheks permissions and opens requested connection.
Parameters: token - security token passed by calling class Parameters: url - BluetoothUrl instance that defines required connection stringname the URL without protocol name and colon Parameters: mode - Connector.READ_WRITE or Connector.READ or Connector.WRITE a notifier in case of server connection string, open connectionin case of client one. exception: IOException - if opening connection fails. |
serverConnection | protected Connection serverConnection(SecurityToken token, int mode) throws IOException(Code) | | Ensures that permissions are proper and creates required notifier at
server side.
Parameters: token - security token if passed by caller, or null Parameters: mode - I/O access mode proper L2CAPNotifierImpl instance exception: IOException - if openning connection fails |
Methods inherited from com.sun.midp.io.BluetoothProtocol | protected void checkForPermission(SecurityToken token, int permission) throws InterruptedIOException(Code)(Java Doc) protected void checkUrl(BluetoothUrl url) throws IllegalArgumentException, BluetoothConnectionException(Code)(Java Doc) abstract protected Connection clientConnection(SecurityToken token, int mode) throws IOException(Code)(Java Doc) public Connection openPrim(String name, int mode, boolean timeouts) throws IOException(Code)(Java Doc) public Connection openPrim(Object token, String name, int mode, boolean timeouts) throws IOException(Code)(Java Doc) protected Connection openPrimImpl(Object token, BluetoothUrl url, int mode) throws IOException(Code)(Java Doc) abstract protected Connection serverConnection(SecurityToken token, int mode) throws IOException(Code)(Java Doc)
|
|
|