| java.lang.Object com.sun.midp.io.BluetoothProtocol com.sun.midp.io.j2me.btgoep.Protocol
Protocol | public class Protocol extends BluetoothProtocol (Code) | | Provides a wrapper for "btgoep" protocol implementation
to answer the GCF style.
|
Field Summary | |
String | name Originally requested url saved to reused in btspp transport. |
Constructor Summary | |
public | Protocol() Constructs an instance. |
name | String name(Code) | | Originally requested url saved to reused in btspp transport.
|
Protocol | public Protocol()(Code) | | Constructs an instance.
|
checkUrl | protected void checkUrl(BluetoothUrl url)(Code) | | Ensures URL parameters have valid value. Makes nothing actually
for all the required checks will be done durin ntspp transport
creation.
Parameters: url - URL to check |
clientConnection | protected Connection clientConnection(SecurityToken token, int mode) throws IOException(Code) | | Creates ClientSession connection over the rfcomm transport layer
Parameters: token - security token of the calling class Parameters: mode - I/O access mode ClientSession connection instance exception: IOException - if openning connection fails. |
openPrim | public Connection openPrim(Object token, String name, int mode, boolean timeouts) throws IOException(Code) | | Cheks permissions and opens requested connection.
Returns either ClientSession or SessionNotifier for OBEX connections,
depending whether client or server URL was specified. Actually all
essential logic is implemented in the superclass, this one only saves
resource name to reuse it for opening btspp transport.
Parameters: token - security token of the calling class Parameters: name - the URL for the connection without protocol. Parameters: mode - obex supports READ_WRITE mode only. Parameters: timeouts - ignored (because it is allowed by spec). ClientSession for client url or SessionNotifier for server url. exception: IOException - if opening connection fails. |
serverConnection | protected Connection serverConnection(SecurityToken token, int mode) throws IOException(Code) | | Creates server connection over the rfcomm transport layer
Parameters: token - security token of the calling class Parameters: mode - I/O access mode server connection 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)
|
|
|