Class OSGiAuthFilter

java.lang.Object
org.glassfish.grizzly.osgi.httpservice.OSGiAuthFilter
All Implemented Interfaces:
javax.servlet.Filter

public class OSGiAuthFilter extends Object implements javax.servlet.Filter
OSGi Authentication filter.
Author:
Hubert Iwaniuk
  • Constructor Summary

    Constructors
    Constructor
    Description
    OSGiAuthFilter(org.osgi.service.http.HttpContext httpContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    void
    doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
    OSGi integration.
    void
    init(javax.servlet.FilterConfig filterConfig)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OSGiAuthFilter

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

    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.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 javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter