com.sun.grizzly.osgi.httpservice
Class OSGiAuthFilter

java.lang.Object
  extended by com.sun.grizzly.osgi.httpservice.OSGiAuthFilter
All Implemented Interfaces:
Filter

public class OSGiAuthFilter
extends Object
implements Filter

OSGi Authentication filter.

Author:
Hubert Iwaniuk

Constructor Summary
OSGiAuthFilter(org.osgi.service.http.HttpContext httpContext)
           
 
Method Summary
 void destroy()
          
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          OSGi integration.
 void init(FilterConfig filterConfig)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiAuthFilter

public OSGiAuthFilter(org.osgi.service.http.HttpContext httpContext)
Method Detail

init

public void init(FilterConfig filterConfig)
          throws ServletException

Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
OSGi integration. Relies on HttpContext.handleSecurity(HttpServletRequest, HttpServletResponse).

If HttpContext.handleSecurity(HttpServletRequest, HttpServletResponse) returns true proceed to next Filter in FilterChain, else do nothing so processing stops here.

Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

public void destroy()

Specified by:
destroy in interface Filter


Copyright © 2012 Oracle Corporation. All Rights Reserved.