|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.obex.ServerRequestHandler
peer2me.network.bluetooth.BluetoothPingConnectionHandler
public class BluetoothPingConnectionHandler
This class is responsible for handling incomming ping-connections. It will accept all incoming connections, but a connection will be closed at the remote end as soon as it has been established. The whole purpose is just to check to see if the local node is alive. This class extends javax.obex.ServerRequestHandler
Constructor Summary | |
---|---|
BluetoothPingConnectionHandler(javax.microedition.io.Connection connection,
java.lang.Thread parentThread)
Constructor. |
Method Summary | |
---|---|
boolean |
isFinished()
If this class has successfully established an incoming connection, this method will return true. |
int |
onConnect(javax.obex.HeaderSet request,
javax.obex.HeaderSet reply)
Inherited method from javax.obex.ServerRequestHandler. |
void |
setConnection(javax.microedition.io.Connection connection)
Sets a reference to the connection that is assosiated with this handler. |
Methods inherited from class javax.obex.ServerRequestHandler |
---|
createHeaderSet, getConnectionID, onAuthenticationFailure, onDelete, onDisconnect, onGet, onPut, onSetPath, setConnectionID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothPingConnectionHandler(javax.microedition.io.Connection connection, java.lang.Thread parentThread)
connection
- The connection that is associated with this handlerparentThread
- The parent threadMethod Detail |
---|
public int onConnect(javax.obex.HeaderSet request, javax.obex.HeaderSet reply)
onConnect
in class javax.obex.ServerRequestHandler
reply
- A HeaderSet that can be used to send a replyrequest
- The HeaderSet that is sent from the remote devicepublic void setConnection(javax.microedition.io.Connection connection)
BluetoothPingListener
.
connection
- The connectionpublic boolean isFinished()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |