org.ops4j.pax.web.extender.samples.whiteboard.internal
Class WhiteboardContext

java.lang.Object
  extended by org.ops4j.pax.web.extender.samples.whiteboard.internal.WhiteboardContext
All Implemented Interfaces:
org.osgi.service.http.HttpContext

public class WhiteboardContext
extends java.lang.Object
implements org.osgi.service.http.HttpContext

A http context that always blocks access to resources.


Field Summary
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
WhiteboardContext()
           
 
Method Summary
 java.lang.String getMimeType(java.lang.String s)
           
 java.net.URL getResource(java.lang.String name)
           
 boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteboardContext

public WhiteboardContext()
Method Detail

handleSecurity

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

getResource

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

getMimeType

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


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