| java.lang.Object com.sun.kvem.jsr082.bluetooth.ServiceSearcherBase com.sun.kvem.jsr082.bluetooth.ServiceSearcher
ServiceSearcher | class ServiceSearcher extends ServiceSearcherBase (Code) | | This class saves information about responses to SDP_ServiceSearchRequest
and SDP_ServiceAttributeRequest requests
and provides functionality of DiscoveryAgent.serviceSearch using
multiple requests via SDPClient (Service Discovery Protocol)
|
Inner Class :class NotifyListenerRunner implements Runnable | |
Method Summary | |
boolean | cancel() Cancels current transaction. | static boolean | cancel(int transactionID) Cancels transaction with given ID.
Parameters: transactionID - ID of transaction to be cancelled. | public void | errorResponse(int errorCode, String info, int transactionID) Receives SDP_ErrorResponse and completes the search request activity
by error reason. | public void | serviceAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID) Receives arrays of service record attributes and their values retrieved
from server response. | public void | serviceSearchAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID) Base class method not relevant to this subclass, must never be called. | public void | serviceSearchResponse(int[] handleList, int transactionID) Receives array of handles retrieved form SDP_serviceSearchResponse. | int | start() Starts SDP_ServiceSearchRequest. | void | stop() Finishes the service searcher activity. |
ServiceSearcher | ServiceSearcher(int[] attrSet, UUID[] uuidSet, RemoteDevice btDev, DiscoveryListener discListener)(Code) | | Creates ServiceSearcher and save all required info in it.
Parameters: attrSet - list of attributes whose values are requested. Parameters: uuidSet - list of UUIDs that indicate services relevant to request. Parameters: btDev - remote Bluetooth device to listen response from. Parameters: discListener - discovery listener. See Also: SDPClient.serviceSearchRequest See Also: SDPClient.serviceAttributeRequest |
cancel | boolean cancel()(Code) | | Cancels current transaction.
false if there is no current transaction, cancels it and returnstrue otherwise. |
cancel | static boolean cancel(int transactionID)(Code) | | Cancels transaction with given ID.
Parameters: transactionID - ID of transaction to be cancelled. false if there is no open transaction with ID given, trueotherwise. |
errorResponse | public void errorResponse(int errorCode, String info, int transactionID)(Code) | | Receives SDP_ErrorResponse and completes the search request activity
by error reason.
Parameters: errorCode - error code form SDP_ErrorResponse. Parameters: info - error details firm SDP_ErrorResponse. Parameters: transactionID - ID of transaction response got within. |
serviceAttributeResponse | public void serviceAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID)(Code) | | Receives arrays of service record attributes and their values retrieved
from server response.
|
serviceSearchAttributeResponse | public void serviceSearchAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID)(Code) | | Base class method not relevant to this subclass, must never be called.
|
serviceSearchResponse | public void serviceSearchResponse(int[] handleList, int transactionID)(Code) | | Receives array of handles retrieved form SDP_serviceSearchResponse.
Parameters: handleList - service record handles retrieved fromSDP_srviceSearchResponse. Parameters: transactionID - ID of transaction response has been received in. |
stop | void stop()(Code) | | Finishes the service searcher activity.
|
Methods inherited from com.sun.kvem.jsr082.bluetooth.ServiceSearcherBase | abstract public void errorResponse(int errorCode, String info, int transactionID)(Code)(Java Doc) abstract public void serviceAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID)(Code)(Java Doc) abstract public void serviceSearchAttributeResponse(int[] attrIDs, DataElement[] attributeValues, int transactionID)(Code)(Java Doc) abstract public void serviceSearchResponse(int[] handleList, int transactionID)(Code)(Java Doc)
|
|
|