org.infoglue.deliver.taglib.content
Class DigitalAssetParameterTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.content.DigitalAssetParameterTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class DigitalAssetParameterTag
extends AbstractTag

This class implements the <content:digitalAssetParameter> tag, which adds an asset to the list of assets in the contentVersion. Note! This tag must have a <content:contentVersionParameter> ancestor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
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
DigitalAssetParameterTag()
          Default constructor.
 
Method Summary
protected  void addDigitalAsset()
          Adds the digital asset to the ancestor tag.
 int doEndTag()
          Adds a parameter with the specified name and value to the parameters of the parent tag.
 void setAssetKey(java.lang.String assetKey)
          Sets the assetKey attribute.
 void setBytes(java.lang.String bytes)
          Sets the bytes attribute to the specified evaluated bytes.
 void setContentType(java.lang.String contentType)
          Sets the contentType attribute.
 void setFile(java.lang.String file)
          Sets the file attribute to the specified evaluated file.
 void setFileItem(java.lang.String fileItem)
          Sets the FileItem attribute to the specified evaluated fileItem.
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalAssetParameterTag

public DigitalAssetParameterTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Adds a parameter with the specified name and value to the parameters of the parent tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

addDigitalAsset

protected void addDigitalAsset()
                        throws javax.servlet.jsp.JspException
Adds the digital asset to the ancestor tag.

Throws:
javax.servlet.jsp.JspException - if the ancestor tag isn't a content version tag.

setAssetKey

public void setAssetKey(java.lang.String assetKey)
                 throws javax.servlet.jsp.JspException
Sets the assetKey attribute.

Parameters:
assetKey - the assetKey to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setContentType

public void setContentType(java.lang.String contentType)
                    throws javax.servlet.jsp.JspException
Sets the contentType attribute.

Parameters:
contentType - the contentType to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setBytes

public void setBytes(java.lang.String bytes)
              throws javax.servlet.jsp.JspException
Sets the bytes attribute to the specified evaluated bytes.

Parameters:
name - the contents of the attachment.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the bytes.

setFile

public void setFile(java.lang.String file)
             throws javax.servlet.jsp.JspException
Sets the file attribute to the specified evaluated file.

Parameters:
file - the contents of the attachment.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the file.

setFileItem

public void setFileItem(java.lang.String fileItem)
                 throws javax.servlet.jsp.JspException
Sets the FileItem attribute to the specified evaluated fileItem.

Parameters:
fileItem - the contents of the attachment.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the fileItem.


Copyright © 2005 InfoGlue.org All Rights Reserved.