Class DataProviderResponse
The response returned by the DataProvider.request(int, java.lang.String)
and DataProvider.discard(int, java.lang.String)
methods. This response indicates whether the DataProvider is able to
provide data for a requested object name, or is currently providing
the data for a discarded object name.
This class contains static instances if the available responses.
The possible responses are:
- OK
- Deny
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataProviderResponseThe DataProvider is unable to provide the requested object.static final DataProviderResponseThe DataProvider is able to provide the requested object. -
Method Summary
Modifier and TypeMethodDescriptionGets the description of the response.intGets the response code that the Transformer core will use to determine whether aDataProvideris able provide the requested data or not.toString()Returns a string that describes the DataProviderResponse, including its description and code.
-
Field Details
-
DENY
The DataProvider is unable to provide the requested object.
-
OK
The DataProvider is able to provide the requested object.
-
-
Method Details
-
getDescription
Gets the description of the response.
- Returns:
- The response's description.
-
getResponseCode
public int getResponseCode()Gets the response code that the Transformer core will use to determine whether a
DataProvideris able provide the requested data or not.The possible values are:
- 0 - OK
- -1 - Deny
- Returns:
- The response's code.
-
toString
Returns a string that describes the DataProviderResponse, including its description and code.
-