public class RemoteResults
extends java.lang.Object
Constructor and Description |
---|
RemoteResults(java.util.Properties resultProperties)
Instantiate a RemoteResults Properties object and parse the known values from
the Properties into useful primitive methods.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(java.lang.String item)
Retrieve an expected boolean value from the results.
|
boolean |
getBoolean(java.lang.String item,
boolean defaultValue)
Retrieve an expected boolean value from the results or a defaultValue if the item is not found.
|
java.lang.String |
getErrorMessage() |
int |
getInt(java.lang.String item)
Retrieve an expected int value from the results.
|
int |
getInt(java.lang.String item,
int defaultValue)
Retrieve an expected int value from the results or a defaultValue if the item was not found.
|
java.util.Properties |
getResultsProperties() |
int |
getStatusCode() |
java.lang.String |
getStatusInfo() |
java.lang.String |
getString(java.lang.String item)
Retrieves an item out of the results.
|
java.lang.String |
getString(java.lang.String item,
java.lang.String defaultValue)
Retrieves an item out of the results or a defaultValue if the item was not found.
|
boolean |
hasItem(java.lang.String key) |
boolean |
isRemoteResult() |
public RemoteResults(java.util.Properties resultProperties)
resultProperties
- public java.util.Properties getResultsProperties()
public boolean isRemoteResult()
public int getStatusCode()
public java.lang.String getStatusInfo()
public java.lang.String getErrorMessage()
public boolean hasItem(java.lang.String key)
public java.lang.String getString(java.lang.String item)
key
- name of the item in the results to retrieve. This is case-sensitive.
Subclasses could override this method to make item names insensitive to case.java.lang.RuntimeException
- if the item does not exist in the results.public java.lang.String getString(java.lang.String item, java.lang.String defaultValue)
key
- name of the item in the results to retrieve. This is case-sensitive.
Subclasses could override this method to make item names insensitive to case.defaultValue
- to return if the sought item is not in the result.public int getInt(java.lang.String item)
item
- Key or Parameter name expected to be stored in the results.java.lang.NumberFormatException
- if the requested item is not a parsable integer.java.lang.RuntimeException
- if the requested item does not exist in the results.Integer.parseInt(String)
public int getInt(java.lang.String item, int defaultValue)
item
- Key or Parameter name expected to be stored in the results.defaultValue
- to return if the sought item is not in the result.public boolean getBoolean(java.lang.String item)
item
- Key or Parameter name expected to be stored in the results.java.lang.RuntimeException
- if the requested item does not exist in the results.Boolean.parseBoolean(String)
public boolean getBoolean(java.lang.String item, boolean defaultValue)
item
- Key or Parameter name expected to be stored in the results.defaultValue
- to return if the sought item is not in the result.Boolean.parseBoolean(String)
Copyright © SAS Institute. All Rights Reserved.