org.apache.muse.core.platform.osgi.mini.internal
Class OSGiMiniEnvironment
java.lang.Object
org.apache.muse.core.AbstractEnvironment
org.apache.muse.core.platform.mini.MiniEnvironment
org.apache.muse.core.platform.osgi.mini.internal.OSGiMiniEnvironment
- All Implemented Interfaces:
- Environment, OSGiEnvironment
public class OSGiMiniEnvironment
- extends MiniEnvironment
- implements OSGiEnvironment
Constructor Summary |
OSGiMiniEnvironment(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.ServletContext servletContext)
|
Methods inherited from class org.apache.muse.core.AbstractEnvironment |
addAddressingContext, createRelativePath, createSoapClient, getAddressingContext, getClassLoader, getDataResource, 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 |
Methods inherited from interface org.apache.muse.core.Environment |
addAddressingContext, createRelativePath, getAddressingContext, getClassLoader, getDataResource, getDefaultURI, getDeploymentEPR, getDocument, getSoapClient, removeAddressingContext, setDefaultURI, setSoapClient |
OSGiMiniEnvironment
public OSGiMiniEnvironment(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.ServletContext servletContext)
getRealDirectory
public File getRealDirectory()
- Specified by:
getRealDirectory
in interface Environment
- Overrides:
getRealDirectory
in class MiniEnvironment
- Returns:
- A object corresponding to the executing thread's Bundle's
root directory. This method uses the
BundleRootHelper
class
to resolve the root directory.- See Also:
BundleRootHelper
getThreadLocalBundle
public org.osgi.framework.Bundle getThreadLocalBundle()
- getter for the Bundle corresponding to the executing thread
- Specified by:
getThreadLocalBundle
in interface OSGiEnvironment
- Returns:
- the current thread's Bundle
setThreadLocalBundle
public void setThreadLocalBundle(org.osgi.framework.Bundle bundle)
- setter for the Bundle corresponding to the executing thread
- Specified by:
setThreadLocalBundle
in interface OSGiEnvironment
- Parameters:
bundle
- the current thread's Bundle
getDataResourceStream
public InputStream getDataResourceStream(String path)
- this method returns an InputStream for a resource based on the
executing thread's Bundle context.
- Specified by:
getDataResourceStream
in interface Environment
- Overrides:
getDataResourceStream
in class AbstractEnvironment
- Parameters:
path
- the path to the resource
- Returns:
- an
InputStream
corresponding to the resource if the resource is found,
otherwise null
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.