public abstract class BaseServiceObject extends Object implements ServiceObject
ServiceObject for objects associated to services.NO_REQUEST, NO_SERVICE| Constructor and Description |
|---|
BaseServiceObject() |
| 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.
|
public final void setServiceId(int serviceId)
ServiceObjectNote, 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.
setServiceId in interface ServiceObjectserviceId - The desired service id.UnsupportedOperationException - If service id has been already specified for this
service object.ServiceObject.getServiceId()public final int getServiceId()
ServiceObjectgetServiceId in interface ServiceObjectServiceObject.NO_SERVICE if there was no service
id provided.ServiceObject.setServiceId(int)public final void setRequestId(String requestId)
ServiceObjectNote, 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.
setRequestId in interface ServiceObjectrequestId - 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.UnsupportedOperationException - If request id has been already specified for this
service object.ServiceObject.getRequestId()public final String getRequestId()
ServiceObjectgetRequestId in interface ServiceObjectServiceObject.NO_REQUEST if there was no request
id provided.ServiceObject.setRequestId(String)