public interface ServiceObject
getServiceId().| Modifier and Type | Field and Description |
|---|---|
static String |
NO_REQUEST
Constant used to identify that a specific ServiceObject is not associated with any particular
service request.
|
static int |
NO_SERVICE
Constant used to identify that a specific ServiceObject is not associated with any service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRequestId()
Returns the unique id of the request with which is this service object associated.
|
int |
getServiceId()
Returns the id of service with which is this service object associated.
|
void |
setRequestId(String requestId)
Sets an id of the request with which is this service object associated.
|
void |
setServiceId(int serviceId)
Specifies an id of the service with which is this service object associated.
|
static final int NO_SERVICE
static final String NO_REQUEST
void setServiceId(int serviceId)
Note, that changing of this id should not be permitted if it has been already specified, so service object implementations are allowed to throw an exception if such action is to be performed.
serviceId - The desired service id.getServiceId()int getServiceId()
NO_SERVICE if there was no service
id provided.setServiceId(int)void setRequestId(String requestId)
Note, that changing of this id should not be permitted if it has been already specified, so service object implementations are allowed to throw an exception if such action is to be performed.
requestId - The desired request id. Should be unique among all requests made for a specific
service or better, unique among all requests made through services API to
really uniquely identify a desired request.getRequestId()String getRequestId()
NO_REQUEST if there was no request
id provided.setRequestId(String)