|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.test.JavaWebService
public class JavaWebService
JavaWebService is a possible ancestor for Java-based web services.
JavaWebService provides for a set of Properties that can be configured for a web service. This capability is analogous to the environment of an ejb-backed web service. The Properties are loaded from a properties file that is deployed into the same classpath location as the service Class. The properties file is named MyServiceClass.properties, where MyServiceClass is the name of the java, web service class. Java web services that are descended from this class can call getProperty methods to get the value for a named property.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
The logging implementation for this class. |
protected static java.util.HashMap |
servicePropertyMap
Cached service properties for descendants of JavaWebService as a Map of full classNames to Property Objects. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
JavaWebService()
|
|
| Method Summary | |
|---|---|
boolean |
getBooleanProperty(java.lang.String propertyName,
boolean defaultValue)
Return a boolean property value. |
int |
getIntProperty(java.lang.String propertyName,
int defaultValue)
Return an int property value. |
long |
getLongProperty(java.lang.String propertyName,
long defaultValue)
Return a long property value. |
protected ExtendedProperties |
getProperties()
Load service Properties from a properties file that is deployed into the same classpath location as the service Class. |
java.lang.String |
getProperty(java.lang.String propertyName)
Return a property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected static java.util.HashMap servicePropertyMap
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public JavaWebService()
| Method Detail |
|---|
protected ExtendedProperties getProperties()
public java.lang.String getProperty(java.lang.String propertyName)
propertyName - The Property name.
public boolean getBooleanProperty(java.lang.String propertyName,
boolean defaultValue)
propertyName - The Property name.defaultValue - a default value.
public long getLongProperty(java.lang.String propertyName,
long defaultValue)
propertyName - The Property name.defaultValue - a default value.
public int getIntProperty(java.lang.String propertyName,
int defaultValue)
propertyName - The Property name.defaultValue - a default value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||