Package org.opencms.jsp
Class CmsJspTagContentInfo
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagContentInfo
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,I_CmsMacroResolver
public class CmsJspTagContentInfo
extends CmsJspScopedVarBodyTagSuport
implements I_CmsMacroResolver
Used to access and display XML content item information from the VFS.
- Since:
- 6.0.0
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface org.opencms.util.I_CmsMacroResolver
MACRO_DELIMITER, MACRO_DELIMITER_OLD, MACRO_END, MACRO_END_OLD, MACRO_START, MACRO_START_OLDFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intgetMacroValue(String macro) Resolves a single macro to the macro value, returnsnullif the macro could not be resolved.getValue()Returns the name of the content info's value that should be printed out.booleanReturnstrueif macros that could not be resolved are kept "as is" in the input String,falseif they are replaced by an empty String.voidrelease()resolveMacros(String input) Resolves all macros in the input, replacing them with the macro values.voidSets the name of the content info's value that should be printed out.protected voidstoreContentInfoBean(CmsJspTagResourceLoad container) Stores the container's content info bean in the page context.Methods inherited from class org.opencms.jsp.CmsJspScopedVarBodyTagSuport
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributeMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
CmsJspTagContentInfo
public CmsJspTagContentInfo()
-
-
Method Details
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- See Also:
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException- See Also:
-
getMacroValue
Description copied from interface:I_CmsMacroResolverResolves a single macro to the macro value, returnsnullif the macro could not be resolved.- Specified by:
getMacroValuein interfaceI_CmsMacroResolver- Parameters:
macro- the macro to resolve- Returns:
- the resolved macro or
nullif the macro could not be resolved - See Also:
-
getValue
Returns the name of the content info's value that should be printed out.- Returns:
- the name of the content info's value that should be printed out
-
isKeepEmptyMacros
Description copied from interface:I_CmsMacroResolverReturnstrueif macros that could not be resolved are kept "as is" in the input String,falseif they are replaced by an empty String.- Specified by:
isKeepEmptyMacrosin interfaceI_CmsMacroResolver- Returns:
trueif macros that could not be resolved are kept "as is" in the input String,falseif they are replaced by an empty String- See Also:
-
release
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classCmsJspScopedVarBodyTagSuport- See Also:
-
resolveMacros
Description copied from interface:I_CmsMacroResolverResolves all macros in the input, replacing them with the macro values.The flag
I_CmsMacroResolver.isKeepEmptyMacros()controls how to deal with macros found in the input that can not be resolved.- Specified by:
resolveMacrosin interfaceI_CmsMacroResolver- Parameters:
input- the input to resolve the macros in- Returns:
- the input with all macros resolved
- See Also:
-
setValue
Sets the name of the content info's value that should be printed out.- Parameters:
value- the name of the content info's value that should be printed out
-
storeContentInfoBean
Stores the container's content info bean in the page context.- Parameters:
container- the parent container
-