com.caucho.server.webapp
Class CacheMapping

java.lang.Object
  extended by com.caucho.server.webapp.CacheMapping

public class CacheMapping
extends java.lang.Object

Configuration for a cache-mapping.


Constructor Summary
CacheMapping()
          Creates the path mapping.
 
Method Summary
 long getMaxAge()
          Gets the expires period.
 long getSMaxAge()
          Gets the expires period.
 java.lang.String getUrlPattern()
          Gets the urlPattern.
 java.lang.String getUrlRegexp()
          Sets the urlRegexp
 void init()
          Init
 void setExpires(Period period)
          Sets the period
 void setMaxAge(Period period)
          Sets the period
 void setSMaxAge(Period period)
          Sets the period
 void setUrlPattern(java.lang.String urlPattern)
          Sets the urlPattern
 void setUrlRegexp(java.lang.String urlRegexp)
          Sets the urlRegexp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheMapping

public CacheMapping()
Creates the path mapping.

Method Detail

setUrlPattern

public void setUrlPattern(java.lang.String urlPattern)
Sets the urlPattern


getUrlPattern

public java.lang.String getUrlPattern()
Gets the urlPattern.


setUrlRegexp

public void setUrlRegexp(java.lang.String urlRegexp)
Sets the urlRegexp


getUrlRegexp

public java.lang.String getUrlRegexp()
Sets the urlRegexp


setExpires

public void setExpires(Period period)
Sets the period


setMaxAge

public void setMaxAge(Period period)
Sets the period


getMaxAge

public long getMaxAge()
Gets the expires period.


setSMaxAge

public void setSMaxAge(Period period)
Sets the period


getSMaxAge

public long getSMaxAge()
Gets the expires period.


init

@PostConstruct
public void init()
          throws ServletException
Init

Throws:
ServletException