Class OSGiAuthFilter
java.lang.Object
org.glassfish.grizzly.osgi.httpservice.OSGiAuthFilter
- All Implemented Interfaces:
javax.servlet.Filter
OSGi Authentication filter.
- Author:
- Hubert Iwaniuk
-
Constructor Summary
Constructors -
Method Summary
-
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:
initin interfacejavax.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 onHttpContext.handleSecurity(HttpServletRequest, HttpServletResponse). IfHttpContext.handleSecurity(HttpServletRequest, HttpServletResponse)returnstrueproceed to nextFilterinFilterChain, else do nothing so processing stops here.- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejavax.servlet.Filter
-