railo.runtime.tag
Class Content

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

public final class Content
extends BodyTagImpl

Defines the MIME type returned by the current page. Optionally, lets you specify the name of a file to be returned with the page.


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
Content()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void hasBody(boolean hasBody)
          sets if tag has a body or not
 void release()
           
 void setContent(byte[] content)
          Deprecated. replaced with #setVariable(String)
 void setDeletefile(boolean deletefile)
          set the value deletefile Yes or No.
 void setFile(String file)
          set the value file The name of the file being retrieved
 void setRange(boolean range)
           
 void setReset(boolean reset)
          set the value reset Yes or No.
 void setType(String type)
          set the value type Defines the File/ MIME content type returned by the current page.
 void setVariable(Object variable)
           
 
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl
doAfterBody, doInitBody, 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

Content

public Content()
Method Detail

release

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

setType

public void setType(String type)
set the value type Defines the File/ MIME content type returned by the current page.

Parameters:
type - value to set

setRange

public void setRange(boolean range)

setFile

public void setFile(String file)
set the value file The name of the file being retrieved

Parameters:
file - value to set

setContent

public void setContent(byte[] content)
Deprecated. replaced with #setVariable(String)

the content to output as binary

Parameters:
content - value to set

setVariable

public void setVariable(Object variable)
                 throws PageException
Throws:
PageException

setReset

public void setReset(boolean reset)
set the value reset Yes or No. Yes discards output that precedes the call to cfcontent. No preserves the output that precedes the call. Defaults to Yes. The reset and file attributes are mutually exclusive. If you specify a file, the reset attribute has no effect.

Parameters:
reset - value to set

setDeletefile

public void setDeletefile(boolean deletefile)
set the value deletefile Yes or No. Yes deletes the file after the download operation. Defaults to No. This attribute applies only if you specify a file with the file attribute.

Parameters:
deletefile - value to set

doStartTag

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

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
See Also:
Tag.doEndTag()

hasBody

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

Parameters:
hasBody -


Copyright © 2012 Railo