org.apache.jetspeed.engine.servlet
Class StaticResourceCachingFilter

java.lang.Object
  extended by org.apache.jetspeed.engine.servlet.StaticResourceCachingFilter
All Implemented Interfaces:
javax.servlet.Filter

public class StaticResourceCachingFilter
extends Object
implements javax.servlet.Filter


Field Summary
private  double expires_in_hours
           
private static TimeZone GMT_TIME_ZONE
           
private static String HTTP_HEADER_CACHE_CONTROL
           
private static String HTTP_HEADER_CACHE_MAX_AGE
           
private static String HTTP_HEADER_CACHE_MAX_AGE_EQ
           
private static String HTTP_HEADER_EXPIRES
           
private  int max_age
           
private static String PARAM_EXPIRES_HOURS
           
 
Constructor Summary
StaticResourceCachingFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest aRequest, javax.servlet.ServletResponse aResponse, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_HEADER_EXPIRES

private static final String HTTP_HEADER_EXPIRES
See Also:
Constant Field Values

HTTP_HEADER_CACHE_CONTROL

private static final String HTTP_HEADER_CACHE_CONTROL
See Also:
Constant Field Values

HTTP_HEADER_CACHE_MAX_AGE

private static final String HTTP_HEADER_CACHE_MAX_AGE
See Also:
Constant Field Values

HTTP_HEADER_CACHE_MAX_AGE_EQ

private static final String HTTP_HEADER_CACHE_MAX_AGE_EQ
See Also:
Constant Field Values

PARAM_EXPIRES_HOURS

private static String PARAM_EXPIRES_HOURS

GMT_TIME_ZONE

private static final TimeZone GMT_TIME_ZONE

expires_in_hours

private double expires_in_hours

max_age

private int max_age
Constructor Detail

StaticResourceCachingFilter

public StaticResourceCachingFilter()
Method Detail

init

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

doFilter

public void doFilter(javax.servlet.ServletRequest aRequest,
                     javax.servlet.ServletResponse aResponse,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
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


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.