|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Environment object returns read-only constant object properties
registered in the system environment. Properties can be retrieved as
generic Object values or by their specific type.
| Field Summary | |
static java.lang.String |
HOST_IP_PROP
Stores the ip address of the local machine |
static java.lang.String |
HOST_NAME_PROP
Stores the hostname of the local machine |
| Method Summary | |
java.lang.Boolean |
getBooleanProperty(java.lang.String argName)
Returns the requested property as a Boolean. |
java.util.Date |
getDateProperty(java.lang.String argName)
Returns the requested property as a Date. |
java.lang.Double |
getDoubleProperty(java.lang.String argName)
Returns the requested property as a Double. |
java.lang.Float |
getFloatProperty(java.lang.String argName)
Returns the requested property as a Float. |
java.lang.Integer |
getIntegerProperty(java.lang.String argName)
Returns the requested property as an Integer. |
java.lang.Long |
getLongProperty(java.lang.String argName)
Returns the requested property as a Long. |
java.lang.Object |
getObjectProperty(java.lang.String argName)
Returns a named property as an java.lang.Object type
regardless of the underlying type |
java.lang.String |
getStringProperty(java.lang.String argName)
Returns a String property from the configuration file |
void |
printProperties(java.io.OutputStream argOut)
Prints all of the properties to the output stream. |
| Field Detail |
public static final java.lang.String HOST_NAME_PROP
public static final java.lang.String HOST_IP_PROP
| Method Detail |
public java.lang.String getStringProperty(java.lang.String argName)
argName - name of the propertypublic java.lang.Object getObjectProperty(java.lang.String argName)
java.lang.Object type
regardless of the underlying typeargName - name of the propertyClassCastException - public java.lang.Long getLongProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public java.lang.Integer getIntegerProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public java.lang.Float getFloatProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public java.lang.Double getDoubleProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public java.lang.Boolean getBooleanProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public java.util.Date getDateProperty(java.lang.String argName)
argName - name of the propertyClassCastException - public void printProperties(java.io.OutputStream argOut)
argOut - the output stream on which to print propertiesClassCastException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||