|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intel.bluetooth.obex.OBEXSessionNotifierImpl
public class OBEXSessionNotifierImpl
SessionNotifier implementation. See Bluetooth Specification Documents for details.
Your application should not use this class directly.
| Constructor Summary | |
|---|---|
OBEXSessionNotifierImpl(StreamConnectionNotifier notifier,
OBEXConnectionParams obexConnectionParams)
Applications should not used this function. |
|
| Method Summary | |
|---|---|
Connection |
acceptAndOpen(ServerRequestHandler handler)
Waits for a transport layer connection to be established and specifies the handler to handle the requests from the client. |
Connection |
acceptAndOpen(ServerRequestHandler handler,
Authenticator auth)
Waits for a transport layer connection to be established and specifies the handler to handle the requests from the client and the Authenticator to use to respond to authentication challenge
and authentication response headers. |
void |
close()
|
ServiceRecord |
getServiceRecord()
|
void |
updateServiceRecord(boolean acceptAndOpen)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OBEXSessionNotifierImpl(StreamConnectionNotifier notifier,
OBEXConnectionParams obexConnectionParams)
throws IOException,
Error
Error - if called from outside of BlueCove internal code.
IOException| Method Detail |
|---|
public Connection acceptAndOpen(ServerRequestHandler handler)
throws IOException
SessionNotifier
SessionNotifier object that
does not have a ServiceRecord in the SDDB, the
ServiceRecord for this object will be added to the SDDB.
This method requests the BCC to put the local device in connectable mode
so that it will respond to connection attempts by clients.
The following checks are done to verify that the service record provided
is valid. If any of these checks fail, then a
ServiceRegistrationException is thrown.
btgoep service record, must be present in
the ServiceRecord associated with this notifier.
ServiceRecord associated with this notifier must not
have changed the RFCOMM server channel number
This method will not ensure that ServiceRecord associated
with this notifier is a completely valid service record. It is the
responsibility of the application to ensure that the service record
follows all of the applicable syntactic and semantic rules for service
record correctness.
Note : once an application invokes close() on any SessionNotifier, L2CAPConnectionNotifier, or StreamConnectionNotifer instance, all pending acceptAndOpen()
methods that have been invoked previously on that instance MUST throw
InterruptedIOException. This mechanism provides an application
with the means to cancel any outstanding acceptAndOpen() method
calls.
acceptAndOpen in interface SessionNotifierhandler - the request handler that will respond to OBEX requests
IOException - if an error occurs in the transport layer
public Connection acceptAndOpen(ServerRequestHandler handler,
Authenticator auth)
throws IOException
SessionNotifierAuthenticator to use to respond to authentication challenge
and authentication response headers.
SessionNotifier object that
does not have a ServiceRecord in the SDDB, the
ServiceRecord for this object will be added to the SDDB.
This method requests the BCC to put the local device in connectable mode
so that it will respond to connection attempts by clients.
The following checks are done to verify that the service record provided
is valid. If any of these checks fail, then a
ServiceRegistrationException is thrown.
btgoep service record, must be present in
the ServiceRecord associated with this notifier.
ServiceRecord associated with this notifier must not
have changed the RFCOMM server channel number
This method will not ensure that ServiceRecord associated
with this notifier is a completely valid service record. It is the
responsibility of the application to ensure that the service record
follows all of the applicable syntactic and semantic rules for service
record correctness.
Note : once an application invokes close() on any SessionNotifier, L2CAPConnectionNotifier, or StreamConnectionNotifer instance, all pending acceptAndOpen()
methods that have been invoked previously on that instance MUST throw
InterruptedIOException. This mechanism provides an application
with the means to cancel any outstanding acceptAndOpen() method
calls.
acceptAndOpen in interface SessionNotifierhandler - the request handler that will respond to OBEX requestsauth - the Authenticator to use with this connection; if
null then no Authenticator will be
used
IOException - if an error occurs in the transport layer
public void close()
throws IOException
close in interface ConnectionIOExceptionpublic ServiceRecord getServiceRecord()
getServiceRecord in interface BluetoothConnectionNotifierServiceRecordAccess
public void updateServiceRecord(boolean acceptAndOpen)
throws ServiceRegistrationException
updateServiceRecord in interface BluetoothConnectionNotifierServiceRecordAccessacceptAndOpen - wrap validation in ServiceRegistrationException
ServiceRegistrationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||