railo.runtime.tag
Class Cache

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.ext.tag.BodyTagImpl
          extended by railo.runtime.tag.Cache
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public final class Cache
extends BodyTagImpl

Speeds up page rendering when dynamic content does not have to be retrieved each time a user accesses the page. To accomplish this, cfcache creates temporary files that contain the static HTML returned from a CFML page. You can use cfcache for simple URLs and URLs that contain URL parameters.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Cache()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 void doInitBody()
           
 int doStartTag()
           
 int getPort()
           
 void hasBody(boolean hasBody)
          sets if tag has a body or not
 void release()
           
 void set_id(String _id)
           
 void setAction(String action)
          set the value action
 void setCachedirectory(String directory)
           
 void setCachename(String cachename)
           
 void setDirectory(String directory)
          set the value directory
 void setExpireurl(String expireurl)
          set the value expireurl
 void setId(Object id)
           
 void setIdletime(TimeSpan idletime)
           
 void setKey(String key)
           
 void setMetadata(String metadata)
           
 void setName(String name)
           
 void setPassword(String password)
          set the value password When required for basic authentication, a valid password.
 void setPort(double port)
          set the value port
 void setProtocol(String protocol)
          set the value protocol Specifies the protocol used to create pages from cache.
 void setThrowonerror(boolean throwOnError)
           
 void setTimeout(Object obj)
          Deprecated. this attribute is deprecated and will ignored in this tag
 void setTimespan(TimeSpan timespan)
           
 void setUsername(String username)
          set the value username When required for basic authentication, a valid username.
 void setValue(Object value)
           
 
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl
setBodyContent
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

Cache

public Cache()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BodyTagImpl

setTimeout

public void setTimeout(Object obj)
                throws DeprecatedException
Deprecated. this attribute is deprecated and will ignored in this tag

Parameters:
obj -
Throws:
DeprecatedException

setDirectory

public void setDirectory(String directory)
                  throws ExpressionException
set the value directory

Parameters:
directory - value to set
Throws:
ExpressionException

setCachedirectory

public void setCachedirectory(String directory)
                       throws ExpressionException
Throws:
ExpressionException

setProtocol

public void setProtocol(String protocol)
set the value protocol Specifies the protocol used to create pages from cache. Either http:// or https://. The default is http://.

Parameters:
protocol - value to set

setExpireurl

public void setExpireurl(String expireurl)
set the value expireurl

Parameters:
expireurl - value to set

setAction

public void setAction(String action)
               throws ApplicationException
set the value action

Parameters:
action - value to set
Throws:
ApplicationException

setUsername

public void setUsername(String username)
set the value username When required for basic authentication, a valid username.

Parameters:
username - value to set

setPassword

public void setPassword(String password)
set the value password When required for basic authentication, a valid password.

Parameters:
password - value to set

setKey

public void setKey(String key)

setPort

public void setPort(double port)
set the value port

Parameters:
port - value to set

getPort

public int getPort()

setTimespan

public void setTimespan(TimeSpan timespan)
Parameters:
timespan - The timespan to set.
Throws:
PageException

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException

doInitBody

public void doInitBody()
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class BodyTagImpl

doAfterBody

public int doAfterBody()
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class BodyTagImpl

doEndTag

public int doEndTag()
             throws PageException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
Throws:
PageException

hasBody

public void hasBody(boolean hasBody)
sets if tag has a body or not

Parameters:
hasBody -

set_id

public void set_id(String _id)
Parameters:
id - the id to set

setId

public void setId(Object id)

setName

public void setName(String name)

setCachename

public void setCachename(String cachename)

setThrowonerror

public void setThrowonerror(boolean throwOnError)
Parameters:
throwOnError - the throwOnError to set

setValue

public void setValue(Object value)

setIdletime

public void setIdletime(TimeSpan idletime)
Parameters:
idletime - the idletime to set

setMetadata

public void setMetadata(String metadata)
Parameters:
metadata - the metadata to set


Copyright © 2012 Railo