org.apache.muse.core.platform.axis2
Class AxisEnvironment

java.lang.Object
  extended by org.apache.muse.core.AbstractEnvironment
      extended by org.apache.muse.core.platform.axis2.AxisEnvironment
All Implemented Interfaces:
Environment
Direct Known Subclasses:
Axis2Environment

public class AxisEnvironment
extends AbstractEnvironment

AxisEnvironment is a concreteEnvironment for the Apache Axis2 SOAP engine. It provides all of the lower-level functionality that is abstracted through the Environment interface using the local file system and Axis2 context APIs.

Author:
Dan Jemiolo (danj)

Constructor Summary
AxisEnvironment()
          This constructor determines the value of the "real directory" - where the application is installed on the file system so that it can read local files when it needs to.
 
Method Summary
 MessageHeaders convertContext()
          Converts Axis2's OperationContext into the Muse addressing context, MessageHeaders.
 EndpointReference convertEPR(org.apache.axis2.addressing.EndpointReference axisEPR)
          Converts Axis2's EPR type into our general one so that code isn't specific to the Axis2 platform.
 org.apache.axiom.om.OMElement convertToAxiom(Element xml)
          Convert DOM to Axiom.
 Element convertToDOM(org.apache.axiom.om.OMElement axiom)
          Convert Axiom to DOM.
protected  File createRealDirectory()
           
 EndpointReference getDeploymentEPR()
           
 File getRealDirectory()
           
 
Methods inherited from class org.apache.muse.core.AbstractEnvironment
addAddressingContext, createRelativePath, createSoapClient, getAddressingContext, getClassLoader, getDataResource, getDataResourceStream, getDefaultEPR, getDefaultURI, getDeploymentURI, getDocument, getSoapClient, removeAddressingContext, setDefaultURI, setSoapClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisEnvironment

public AxisEnvironment()
This constructor determines the value of the "real directory" - where the application is installed on the file system so that it can read local files when it needs to.

Method Detail

convertContext

public MessageHeaders convertContext()
Converts Axis2's OperationContext into the Muse addressing context, MessageHeaders. Hopefully this becomes irrelevant through the adoption of something like JSR-261 or some WS-A project in Apache Commons.


convertEPR

public EndpointReference convertEPR(org.apache.axis2.addressing.EndpointReference axisEPR)
Converts Axis2's EPR type into our general one so that code isn't specific to the Axis2 platform. Hopefully this becomes irrelevant through the adoption of something like JSR-261 or some WS-A project in Apache Commons.


convertToAxiom

public org.apache.axiom.om.OMElement convertToAxiom(Element xml)
Convert DOM to Axiom. Muse uses the DOM API in the JDK, Axis2 uses the Axiom API, which is similar but... different.


convertToDOM

public Element convertToDOM(org.apache.axiom.om.OMElement axiom)
Convert Axiom to DOM. Muse uses the DOM API in the JDK, Axis2 uses the Axiom API, which is similar but... different.


createRealDirectory

protected File createRealDirectory()

getDeploymentEPR

public EndpointReference getDeploymentEPR()
Returns:
The copy of the EPR of the application, as viewed in the context of the current request. When multiple endpoints are mapped to one application/service, this method will return different EPRs from request to request. Muse uses this feature to host different resource types (with different endpoints) in the same application or bundle.

getRealDirectory

public File getRealDirectory()
Returns:
The actual directory on the file system where the application is deployed.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.