org.apache.felix.http.jetty
Class DefaultContextImpl
java.lang.Object
org.apache.felix.http.jetty.DefaultContextImpl
- All Implemented Interfaces:
- org.osgi.service.http.HttpContext
public class DefaultContextImpl
- extends java.lang.Object
- implements org.osgi.service.http.HttpContext
Implementation of default HttpContext as per OSGi specification.
Notes
- no current inclusion/support for permissions
- security allows all request. Spec leaves security handling to be
implementation specific, but does outline some suggested handling.
Deeper than my understanding of HTTP at this stage, so left for now.
Fields inherited from interface org.osgi.service.http.HttpContext |
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER |
Method Summary |
java.lang.String |
getMimeType(java.lang.String name)
|
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 |
DefaultContextImpl
public DefaultContextImpl(org.osgi.framework.Bundle bundle)
getMimeType
public java.lang.String getMimeType(java.lang.String name)
- Specified by:
getMimeType
in interface org.osgi.service.http.HttpContext
getResource
public java.net.URL getResource(java.lang.String name)
- Specified by:
getResource
in interface org.osgi.service.http.HttpContext
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
handleSecurity
in interface org.osgi.service.http.HttpContext