|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.obex.ServerRequestHandler
peer2me.network.bluetooth.BluetoothConnectionHandler
public class BluetoothConnectionHandler
This class is responsible for handling all incomming connections and messages except for pings. This class extends javax.obex.ServerRequestHandler
Constructor Summary | |
---|---|
BluetoothConnectionHandler(javax.microedition.io.Connection connection,
BluetoothListener bluetoothListener,
Bluetooth bluetooth)
Constructor that sets local references to the parameters given |
Method Summary | |
---|---|
boolean |
isFinished()
If this class has received all the data that the remote device has sent, this class has fulfilled its purpose and is finished. |
int |
onConnect(javax.obex.HeaderSet request,
javax.obex.HeaderSet reply)
Inherited method from javax.obex.ServerRequestHandler. |
void |
onDisconnect(javax.obex.HeaderSet req,
javax.obex.HeaderSet resp)
Inherited method from javax.obex.ServerRequestHandler. |
int |
onPut(javax.obex.Operation operation)
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, onGet, onSetPath, setConnectionID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothConnectionHandler(javax.microedition.io.Connection connection, BluetoothListener bluetoothListener, Bluetooth bluetooth)
connection
- bluetoothListener
- bluetooth
- Method 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 int onPut(javax.obex.Operation operation)
Message
.
onPut
in class javax.obex.ServerRequestHandler
operation
- Contains HeaderSet and bytestreampublic void onDisconnect(javax.obex.HeaderSet req, javax.obex.HeaderSet resp)
onDisconnect
in class javax.obex.ServerRequestHandler
req
- The HeaderSet that is received upon disconnectionresp
- The HeaderSet that can be sent upon disconnectionpublic boolean isFinished()
public void setConnection(javax.microedition.io.Connection connection)
BluetoothListener
.
connection
- The connection that the data is being received on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |