org.apache.cocoon.core.osgi
Class OSGiBootstrapEnvironment.OSGiContext

java.lang.Object
  extended byorg.apache.cocoon.environment.impl.AbstractContext
      extended byorg.apache.cocoon.core.osgi.OSGiBootstrapEnvironment.OSGiContext
All Implemented Interfaces:
Context
Enclosing class:
OSGiBootstrapEnvironment

public class OSGiBootstrapEnvironment.OSGiContext
extends AbstractContext


Constructor Summary
OSGiBootstrapEnvironment.OSGiContext(org.osgi.framework.Bundle bundle)
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String getInitParameter(String name)
           
 String getMimeType(String file)
           
 String getRealPath(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class org.apache.cocoon.environment.impl.AbstractContext
getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiBootstrapEnvironment.OSGiContext

public OSGiBootstrapEnvironment.OSGiContext(org.osgi.framework.Bundle bundle)
Method Detail

getAttribute

public Object getAttribute(String name)

setAttribute

public void setAttribute(String name,
                         Object value)

removeAttribute

public void removeAttribute(String name)

getAttributeNames

public Enumeration getAttributeNames()

getResource

public URL getResource(String path)
                throws MalformedURLException
Throws:
MalformedURLException

getRealPath

public String getRealPath(String path)

getMimeType

public String getMimeType(String file)

getInitParameter

public String getInitParameter(String name)

getResourceAsStream

public InputStream getResourceAsStream(String path)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.