|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Environment
Environment defines features related to the underlying platform and the endpoint's configuration in a generic way. It allows resources to ask for data or task completion that depends on a platform-specific API without introducing platform-specific API usage into implementation code.
Method Summary | |
---|---|
void |
addAddressingContext(MessageHeaders context)
Records the WS-Addressing data for the current request. |
String |
createRelativePath(String originalPath,
String relativePath)
Merges the two paths to create a valid version of the second path. |
MessageHeaders |
getAddressingContext()
|
ClassLoader |
getClassLoader()
|
URL |
getDataResource(String path)
|
InputStream |
getDataResourceStream(String path)
|
String |
getDefaultURI()
|
EndpointReference |
getDeploymentEPR()
|
Document |
getDocument(String path)
This is a convenience method that loads an InputStream using getDataResourceStream() and turns it into a DOM Document. |
File |
getRealDirectory()
|
SoapClient |
getSoapClient()
|
void |
removeAddressingContext()
Removes the context object for the current request. |
void |
setDefaultURI(String defaultURI)
|
void |
setSoapClient(SoapClient soapClient)
Provides a new SOAP client for use by other components in the system. |
Method Detail |
---|
void addAddressingContext(MessageHeaders context)
context
- An object that can provide platform-specific information
and which is thread-unique or thread-safe.String createRelativePath(String originalPath, String relativePath)
MessageHeaders getAddressingContext()
ClassLoader getClassLoader()
URL getDataResource(String path)
path
- 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.
InputStream getDataResourceStream(String path)
path
- 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.
String getDefaultURI()
EndpointReference getDeploymentEPR()
Document getDocument(String path)
getDataResourceStream(String)
File getRealDirectory()
SoapClient getSoapClient()
void removeAddressingContext()
void setDefaultURI(String defaultURI)
defaultURI
- The URI to use when some address context is needed, but there
is no request data to provide it.void setSoapClient(SoapClient soapClient)
soapClient
- The SOAP client that should be used by components needing to
invoke other web services.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |