org.talika.tarsis.filters.security
Class IsSecureFilter

java.lang.Object
  extended by org.talika.tarsis.filters.AbstractFilter
      extended by org.talika.tarsis.filters.CommandFilter
          extended by org.talika.tarsis.filters.security.IsSecureFilter
All Implemented Interfaces:
javax.servlet.Filter

public final class IsSecureFilter
extends CommandFilter

Secure filter checks if command is secure and then if command is accessed throught HTTPS protocol.

Version:
$Revision: 269 $
Author:
Jose M. Palomar

Constructor Summary
IsSecureFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Checks if command is accessed throught HTTPS protocol and if not throws a ForbiddenAccessException.
 
Methods inherited from class org.talika.tarsis.filters.CommandFilter
destroy, findCommand, getCommandFactory, init
 
Methods inherited from class org.talika.tarsis.filters.AbstractFilter
getContext, getFilterConfig, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsSecureFilter

public IsSecureFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Checks if command is accessed throught HTTPS protocol and if not throws a ForbiddenAccessException.

Specified by:
doFilter in interface javax.servlet.Filter
Specified by:
doFilter in class AbstractFilter
Parameters:
request - ServletRequest the ServletRequest object that contains the client's request.
response - ServletResponse the ServletResponse object that contains the servlet's response.
chain - FilterChain invocation chain of filtered request.
Throws:
java.io.IOException - if an input or output exception occurs
javax.servlet.ServletException - if an exception has occurred that interferes with the filter's normal operation
See Also:
Filter.doFilter(ServletRequest, ServletResponse, FilterChain)


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.