org.ogf.graap.wsag.wsrf.bootstrap
Class BootstrapEnvironment

java.lang.Object
  extended by org.apache.muse.core.AbstractEnvironment
      extended by org.ogf.graap.wsag.wsrf.bootstrap.BootstrapEnvironment
All Implemented Interfaces:
org.apache.muse.core.Environment

public class BootstrapEnvironment
extends org.apache.muse.core.AbstractEnvironment

The bootstrap environment implements a AbstractEnvironment in order to start up the WSRF layer before the initial invocation of the web service interface.

Author:
Oliver Waeldrich

Constructor Summary
BootstrapEnvironment(String realPath, String defaultDeploymentUri)
          Creates a BootstrapEnvironment with a given application path (path of the expanded web application) and the external URI of the application.
 
Method Summary
 void addAddressingContext(org.apache.muse.ws.addressing.MessageHeaders context)
          registers a new addressing context
 org.apache.muse.ws.addressing.MessageHeaders getAddressingContext()
           
 URL getDataResource(String path)
          looks up a data resource at the given path
 InputStream getDataResourceStream(String path)
          Returns the data resource at the given path as an InputStream.
 org.apache.muse.ws.addressing.EndpointReference getDeploymentEPR()
           
 File getRealDirectory()
           
 
Methods inherited from class org.apache.muse.core.AbstractEnvironment
createRelativePath, createSoapClient, getClassLoader, 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

BootstrapEnvironment

public BootstrapEnvironment(String realPath,
                            String defaultDeploymentUri)
Creates a BootstrapEnvironment with a given application path (path of the expanded web application) and the external URI of the application.

Parameters:
realPath - the real path on the file system used for this environment
defaultDeploymentUri - the default WSRF deployment URI
Method Detail

getDeploymentEPR

public org.apache.muse.ws.addressing.EndpointReference getDeploymentEPR()
Returns:
the deployment EPR

getRealDirectory

public File getRealDirectory()
Returns:
the real path on the file system used for this environment

addAddressingContext

public void addAddressingContext(org.apache.muse.ws.addressing.MessageHeaders context)
registers a new addressing context

Specified by:
addAddressingContext in interface org.apache.muse.core.Environment
Overrides:
addAddressingContext in class org.apache.muse.core.AbstractEnvironment
Parameters:
context - the addressing context

getAddressingContext

public org.apache.muse.ws.addressing.MessageHeaders getAddressingContext()
Specified by:
getAddressingContext in interface org.apache.muse.core.Environment
Overrides:
getAddressingContext in class org.apache.muse.core.AbstractEnvironment
Returns:
the registered addressing context

getDataResource

public URL getDataResource(String path)
looks up a data resource at the given path

Specified by:
getDataResource in interface org.apache.muse.core.Environment
Overrides:
getDataResource in class org.apache.muse.core.AbstractEnvironment
Parameters:
path - the name of the data resource
Returns:
the data resource URL

getDataResourceStream

public InputStream getDataResourceStream(String path)
Returns the data resource at the given path as an InputStream.

Specified by:
getDataResourceStream in interface org.apache.muse.core.Environment
Overrides:
getDataResourceStream in class org.apache.muse.core.AbstractEnvironment
Parameters:
path - the name of the data resource
Returns:
the data resource input stream


Copyright © 2008-2012. All Rights Reserved.