|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.muse.core.AbstractEnvironment
AbstractEnvironment is an abstract class that defines features related to the underlying platform as well as the endpoint's configuration. Its major responsibilities include storing request context on a per-thread basis and providing generic deployment information. Concrete isolation layers should provide concrete Environments that implement the abstract methods using the APIs of the underlying web services platform.
org.apache.muse.core.platform.AbstractIsolationLayer| Constructor Summary | |
|---|---|
AbstractEnvironment()
The default constructor calls this('true'). |
|
AbstractEnvironment(boolean createSoapClient)
Initializes the AbstractEnvironment with its own ClassLoader. |
|
AbstractEnvironment(java.lang.ClassLoader classLoader)
This constructor calls this(classLoader, 'true'). |
|
AbstractEnvironment(java.lang.ClassLoader classLoader,
boolean createSoapClient)
|
|
| Method Summary | |
|---|---|
void |
addAddressingContext(MessageHeaders context)
Records the WS-Addressing data for the current request. |
java.lang.String |
createRelativePath(java.lang.String originalPath,
java.lang.String relativePath)
Merges the two paths to create a valid version of the second path. |
protected SoapClient |
createSoapClient()
This method can be overridden by concrete Environments to provide a different implementation of SoapClient for use by the application. |
MessageHeaders |
getAddressingContext()
|
java.lang.ClassLoader |
getClassLoader()
|
java.net.URL |
getDataResource(java.lang.String path)
|
java.io.InputStream |
getDataResourceStream(java.lang.String path)
|
protected EndpointReference |
getDefaultEPR()
|
java.lang.String |
getDefaultURI()
|
protected java.lang.String |
getDeploymentURI(java.lang.String uriString)
|
org.w3c.dom.Document |
getDocument(java.lang.String path)
This is a convenience method that loads an InputStream using getDataResourceStream() and turns it into a DOM Document. |
SoapClient |
getSoapClient()
|
void |
removeAddressingContext()
Removes the context object for the current request. |
void |
setDefaultURI(java.lang.String defaultURI)
|
void |
setSoapClient(SoapClient soapClient)
Provides a new SOAP client for use by other components in the system. The default SOAP client is an instance of SimpleSoapClient. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.muse.core.Environment |
|---|
getDeploymentEPR, getRealDirectory |
| Constructor Detail |
public AbstractEnvironment()
public AbstractEnvironment(boolean createSoapClient)
createSoapClient - True if you want the SOAP client to be initialized. This requires
that you have a valid JAX-RPC SOAP implementation (not just the
interfaces) on the classpath.public AbstractEnvironment(java.lang.ClassLoader classLoader)
public AbstractEnvironment(java.lang.ClassLoader classLoader,
boolean createSoapClient)
classLoader - The ClassLoader that will be used to load all Java classes as well
as all file system resources.createSoapClient - True if you want the SOAP client to be initialized. This requires
that you have a valid JAX-RPC SOAP implementation (not just the
interfaces) on the classpath.| Method Detail |
public void addAddressingContext(MessageHeaders context)
Environment
addAddressingContext in interface Environmentcontext - An object that can provide platform-specific information
and which is thread-unique or thread-safe.
public java.lang.String createRelativePath(java.lang.String originalPath,
java.lang.String relativePath)
Environment
createRelativePath in interface Environmentprotected SoapClient createSoapClient()
public MessageHeaders getAddressingContext()
getAddressingContext in interface Environmentpublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface Environmentpublic java.net.URL getDataResource(java.lang.String path)
getDataResource in interface Environmentpath - A path that is relative to the environment's context root.
In J2EE applications this is the WAR root, in OSGi applications
this is the bundle's root.
public java.io.InputStream getDataResourceStream(java.lang.String path)
getDataResourceStream in interface Environmentpath - A path that is relative to the environment's context root.
In J2EE applications this is the WAR root, in OSGi applications
this is the bundle's root.
protected EndpointReference getDefaultEPR()
public java.lang.String getDefaultURI()
getDefaultURI in interface Environmentprotected java.lang.String getDeploymentURI(java.lang.String uriString)
uriString -
public org.w3c.dom.Document getDocument(java.lang.String path)
Environment
getDocument in interface EnvironmentEnvironment.getDataResourceStream(String)public SoapClient getSoapClient()
getSoapClient in interface EnvironmentSimpleSoapClientpublic void removeAddressingContext()
Environment
removeAddressingContext in interface Environmentpublic void setDefaultURI(java.lang.String defaultURI)
setDefaultURI in interface EnvironmentdefaultURI - The URI to use when some address context is needed, but there
is no request data to provide it.public void setSoapClient(SoapClient soapClient)
setSoapClient in interface EnvironmentsoapClient - The SOAP client that should be used by components needing to
invoke other web services.SimpleSoapClient
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||