| java.lang.Object com.sun.kvem.jsr082.bluetooth.SDPClient
SDPClient | class SDPClient (Code) | | SDPClient class provides a client side of SDP connection as described in
Bluetooth Specification version 1.2.
|
Constructor Summary | |
| SDPClient(String bluetoothAddress) Constructs an SDPClient object and opens SDP connection
to the remote device with the specified Bluetooth address. |
Method Summary | |
boolean | cancelServiceSearch(int transactionID) Cancels transaction with given ID. | void | close() Closes connection of this client to the specified server. | static synchronized void | freeTransactionID(short transactionID) Frees transaction ID. | static synchronized short | newTransactionID() Retrieves next new transaction ID. | void | serviceAttributeRequest(int serviceRecordHandle, int[] attrSet, int transactionID, SDPResponseListener listener) Initiates ServiceAttribute transaction that retrieves
specified attribute values from a specific service record. | void | serviceSearchAttributeRequest(int[] attrSet, UUID[] uuidSet, int transactionID, SDPResponseListener listener) Initiates ServiceSearchAttribute transaction that searches for services
on a server by UUIDs specified and retrieves values of specified
parameters for service records found. | void | serviceSearchRequest(UUID[] uuidSet, int transactionID, SDPResponseListener listener) Initiates ServiceSearch transaction that is used to search for
services that have all the UUIDs specified on a server. |
SDPClient | SDPClient(String bluetoothAddress) throws IOException(Code) | | Constructs an SDPClient object and opens SDP connection
to the remote device with the specified Bluetooth address.
Parameters: bluetoothAddress - bluetooth address of SDP server |
cancelServiceSearch | boolean cancelServiceSearch(int transactionID)(Code) | | Cancels transaction with given ID.
|
close | void close() throws IOException(Code) | | Closes connection of this client to the specified server.
throws: IOException - if no connection is open |
freeTransactionID | static synchronized void freeTransactionID(short transactionID)(Code) | | Frees transaction ID.
Parameters: transactionID - the ID to free. |
newTransactionID | static synchronized short newTransactionID()(Code) | | Retrieves next new transaction ID.
new transaction ID. |
serviceAttributeRequest | void serviceAttributeRequest(int serviceRecordHandle, int[] attrSet, int transactionID, SDPResponseListener listener) throws IOException(Code) | | Initiates ServiceAttribute transaction that retrieves
specified attribute values from a specific service record.
|
serviceSearchAttributeRequest | void serviceSearchAttributeRequest(int[] attrSet, UUID[] uuidSet, int transactionID, SDPResponseListener listener) throws IOException(Code) | | Initiates ServiceSearchAttribute transaction that searches for services
on a server by UUIDs specified and retrieves values of specified
parameters for service records found.
|
serviceSearchRequest | void serviceSearchRequest(UUID[] uuidSet, int transactionID, SDPResponseListener listener) throws IOException(Code) | | Initiates ServiceSearch transaction that is used to search for
services that have all the UUIDs specified on a server.
|
|
|