com.sun.grizzly.osgi.httpservice
Class HttpContextImpl

java.lang.Object
  extended by com.sun.grizzly.osgi.httpservice.HttpContextImpl
All Implemented Interfaces:
org.osgi.service.http.HttpContext

public class HttpContextImpl
extends Object
implements org.osgi.service.http.HttpContext

Grizzly OSGi HttpServices HttpContext implementation.

Since:
Jan 21, 2009
Author:
Hubert Iwaniuk

Field Summary
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
HttpContextImpl(org.osgi.framework.Bundle bundle)
           
 
Method Summary
 String getMimeType(String s)
           
 URL getResource(String s)
           
 boolean handleSecurity(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpContextImpl

public HttpContextImpl(org.osgi.framework.Bundle bundle)
Method Detail

handleSecurity

public boolean handleSecurity(HttpServletRequest httpServletRequest,
                              HttpServletResponse httpServletResponse)
                       throws IOException
Specified by:
handleSecurity in interface org.osgi.service.http.HttpContext
Throws:
IOException

getResource

public URL getResource(String s)
Specified by:
getResource in interface org.osgi.service.http.HttpContext

getMimeType

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.