public class DataProviderResponse extends Object
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:
Modifier and Type | Field and Description |
---|---|
static DataProviderResponse |
DENY
The DataProvider is unable to provide the requested object.
|
static DataProviderResponse |
OK
The DataProvider is able to provide the requested object.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the description of the response.
|
int |
getResponseCode()
Gets the response code that the Transformer core will use to
determine whether a
DataProvider
is able provide the requested data or not. |
String |
toString()
Returns a string that describes the DataProviderResponse,
including its description and code.
|
public static final DataProviderResponse DENY
The DataProvider is unable to provide the requested object.
public static final DataProviderResponse OK
The DataProvider is able to provide the requested object.
public String getDescription()
Gets the description of the response.
public int getResponseCode()
Gets the response code that the Transformer core will use to
determine whether a DataProvider
is able provide the requested data or not.
The possible values are:
Please send bug reports and comments to Caplin support