|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.avetana.bluetooth.obex.SessionNotifierImpl
| Constructor Summary | |
SessionNotifierImpl(StreamConnectionNotifier locConNot)
|
|
| 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()
First calls streamConClose and then closes the ConnectionNotifier. |
HeaderSet |
createHeaderSet()
|
Authenticator |
getAuthenticator()
|
StreamConnectionNotifier |
getConnectionNotifier()
|
int |
getMTU()
|
protected void |
handleAuthChallenge(HeaderSet request,
HeaderSet response)
|
protected boolean |
handleAuthResponse(HeaderSet request)
|
byte[] |
receiveCommand()
|
void |
sendCommand(int commId,
byte[] data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionNotifierImpl(StreamConnectionNotifier locConNot)
| Method Detail |
public Connection acceptAndOpen(ServerRequestHandler handler)
throws java.io.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.
acceptAndOpen in interface SessionNotifierhandler - the request handler that will respond to OBEX requests
java.io.IOException - if an error occurs in the transport layer
public Connection acceptAndOpen(ServerRequestHandler handler,
Authenticator auth)
throws java.io.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.
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
java.io.IOException - if an error occurs in the transport layerpublic StreamConnectionNotifier getConnectionNotifier()
public HeaderSet createHeaderSet()
createHeaderSet in interface CommandHandler
protected void handleAuthChallenge(HeaderSet request,
HeaderSet response)
request - response - protected boolean handleAuthResponse(HeaderSet request)
request -
public void close()
close in interface Connection
public byte[] receiveCommand()
throws java.io.IOException
receiveCommand in interface CommandHandlerjava.io.IOException
public void sendCommand(int commId,
byte[] data)
throws java.io.IOException
sendCommand in interface CommandHandlerjava.io.IOExceptionpublic int getMTU()
getMTU in interface CommandHandlerpublic Authenticator getAuthenticator()
getAuthenticator in interface CommandHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||