org.jmage.mapper
Class InterceptorMapper

java.lang.Object
  extended by org.jmage.mapper.InterceptorMapper
All Implemented Interfaces:
javax.servlet.Filter

public class InterceptorMapper
extends java.lang.Object
implements javax.servlet.Filter

Filters http servlet requests for GET image and redirects to filtered images based rules.


Field Summary
static java.lang.String JMAGE_FILTERED
           
static java.lang.String JMAGE_INTERNAL
           
static java.lang.String JMAGE_MATCHED
           
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
InterceptorMapper()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMAGE_MATCHED

public static final java.lang.String JMAGE_MATCHED
See Also:
Constant Field Values

JMAGE_FILTERED

public static final java.lang.String JMAGE_FILTERED
See Also:
Constant Field Values

JMAGE_INTERNAL

public static final java.lang.String JMAGE_INTERNAL
See Also:
Constant Field Values

log

protected static org.apache.log4j.Logger log
Constructor Detail

InterceptorMapper

public InterceptorMapper()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

init

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

destroy

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


Copyright © 2004-2008 Sourceforge. All Rights Reserved.