org.ops4j.pax.web.service.internal
Class DefaultSharedWebContainerContext

java.lang.Object
  extended by org.ops4j.pax.web.service.internal.DefaultSharedWebContainerContext
All Implemented Interfaces:
SharedWebContainerContext, WebContainerContext, org.osgi.service.http.HttpContext

public class DefaultSharedWebContainerContext
extends java.lang.Object
implements SharedWebContainerContext


Field Summary
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
DefaultSharedWebContainerContext()
           
 
Method Summary
 boolean deregisterBundle(org.osgi.framework.Bundle bundle)
           
 java.lang.String getMimeType(java.lang.String arg0)
           
 java.net.URL getResource(java.lang.String path)
           
 java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
          Returns a set of all the paths (String objects) to entries within the web application whose longest sub-path matches the supplied path argument.
 boolean handleSecurity(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
 boolean registerBundle(org.osgi.framework.Bundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSharedWebContainerContext

public DefaultSharedWebContainerContext()
Method Detail

registerBundle

public boolean registerBundle(org.osgi.framework.Bundle bundle)
Specified by:
registerBundle in interface SharedWebContainerContext

deregisterBundle

public boolean deregisterBundle(org.osgi.framework.Bundle bundle)
Specified by:
deregisterBundle in interface SharedWebContainerContext

getResourcePaths

public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
Description copied from interface: WebContainerContext
Returns a set of all the paths (String objects) to entries within the web application whose longest sub-path matches the supplied path argument. A specified path of "/" indicates the root of the web application.

Specified by:
getResourcePaths in interface WebContainerContext
Parameters:
path - the path name for which to return resource paths
Returns:
a set of the resource paths (String objects) or null if no resource paths could be found or if the caller does not have the appropriate permissions.

getMimeType

public java.lang.String getMimeType(java.lang.String arg0)
Specified by:
getMimeType in interface org.osgi.service.http.HttpContext

getResource

public java.net.URL getResource(java.lang.String path)
Specified by:
getResource in interface org.osgi.service.http.HttpContext

handleSecurity

public boolean handleSecurity(javax.servlet.http.HttpServletRequest arg0,
                              javax.servlet.http.HttpServletResponse arg1)
                       throws java.io.IOException
Specified by:
handleSecurity in interface org.osgi.service.http.HttpContext
Throws:
java.io.IOException


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.