FileDocCategorySizeDatePackage
SDPResponseListener.javaAPI DocphoneME MR2 API (J2ME)4204Wed May 02 18:00:32 BST 2007com.sun.kvem.jsr082.bluetooth

SDPResponseListener

public interface SDPResponseListener
Common interface for SDP server responses listeners. Listenners are assigned to active transactions and recieve SDP server responses.

Fields Summary
static final int
IO_ERROR
Transaction cancelling reason: abnormal IO error.
static final int
TERMINATED
Transaction cancelling reason: transaction has been terminated.
static final int
SDP_INVALID_VERSION
Error code returned by SDP server: Invalid/unsupported SDP version.
static final int
SDP_INVALID_SR_HANDLE
Error code returned by SDP server: Invalid Service Record Handle.
static final int
SDP_INVALID_SYNTAX
Error code returned by SDP server: Invalid request syntax.
static final int
SDP_INVALID_PDU_SIZE
Error code returned by SDP server: Invalid PDU Size.
static final int
SDP_INVALID_CONTINUATION_STATE
Error code returned by SDP server: Invalid Continuation State.
static final int
SDP_INSUFFICIENT_RESOURCES
Error code returned by SDP server: Insufficient Resources to satisfy Request.
Constructors Summary
Methods Summary
public voiderrorResponse(int errorCode, java.lang.String info, int transactionID)
Informs this listener about errors during Service Discovering process.

param
errorCode error code recieved from server or generated locally due to transaction terminating.
param
info detail information about the error
param
transactionID ID of transaction response recieved within.

public voidserviceAttributeResponse(int[] attrIDs, javax.bluetooth.DataElement[] attributeValues, int transactionID)
Informs this listener about found attributes of specified service record.

param
attrIDs list of attributes whose values requested from server within SDP_ServiceAttributesRequest.
param
attributeValues values returned by server within SDP_ServiceAttributesResponse.
param
transactionID ID of transaction response recieved within.

public voidserviceSearchAttributeResponse(int[] attrIDs, javax.bluetooth.DataElement[] attributeValues, int transactionID)
Informs this listener about attributes of fisrt found service record.

param
attrIDs list of attributes whose values requested from server within SDP_ServiceSearchAttributesRequest.
param
attributeValues values returned by server within SDP_ServiceSearchAttributesResponse.
param
transactionID ID of transaction response recieved within.

public voidserviceSearchResponse(int[] handleList, int transactionID)
Informs this listener about found services records.

param
handleList service records handles returned by server within SDP_ServiceSearchResponse.
param
transactionID ID of transaction response recieved within.