uk.ac.soton.itinnovation.grid.utils
Class HttpsFilter

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.utils.HttpsFilter
All Implemented Interfaces:
Filter

public class HttpsFilter
extends Object
implements Filter

Fitler class to prevent unsecure connections to the web application configured to work with this filter.


Constructor Summary
HttpsFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Forward client requests to secure web applications only.
 void init(FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsFilter

public HttpsFilter()
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws ServletException
Forward client requests to secure web applications only. https requests are forwarded to the next filter in the chain or a web application whichever is the next in the chain.

Specified by:
doFilter in interface Filter
Parameters:
request -
response -
chain -
Throws:
ServletException

init

public void init(FilterConfig config)
Specified by:
init in interface Filter

destroy

public void destroy()
Specified by:
destroy in interface Filter


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.