- All Implemented Interfaces:
PageAttribute,ParamsAttribute,DynamicAttributes,JspTag,SimpleTag
- Direct Known Subclasses:
ForwardTag,IncludeTag,RedirectTag
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ScopeEE.Request.Attribute<Boolean> Deprecated.protected Stringprotected MutableURIParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAdds a dynamic attribute.voidAdds a parameter.voiddoTag()Deprecated.You should probably be implementing indispatch(javax.servlet.RequestDispatcher, javax.servlet.jsp.JspWriter, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)protected voidSubclass hook to intercept request after servlet paths have been determined and before dispatch is called.getArgs()Gets the arguments that will be passed on dispatch.protected abstract WildcardPatternMatcherstatic HttpServletRequestgetParameterAlteredRequest(HttpServletRequest request, URIParameters params, Map<String, String[]> oldMap, WildcardPatternMatcher clearParamsMatcher) protected voidinvoke(JspFragment body) Invokes the body.static booleanDeprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATHdirectly.voidsetDynamicAttribute(String uri, String localName, Object value) Deprecated.You should probably be implementing inaddDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List)voidMethods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aoapps.taglib.ParamsAttribute
addParam
-
Field Details
-
FORWARDED_REQUEST_ATTRIBUTE
Deprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATHdirectly.Tracks if the request has been forwarded. -
page
-
params
-
-
Constructor Details
-
DispatchTag
public DispatchTag()
-
-
Method Details
-
isForwarded
Deprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATHdirectly.Checks if the request has been forwarded. -
getParameterAlteredRequest
public static HttpServletRequest getParameterAlteredRequest(HttpServletRequest request, URIParameters params, Map<String, String[]> oldMap, WildcardPatternMatcher clearParamsMatcher) -
setPage
- Specified by:
setPagein interfacePageAttribute
-
getClearParamsMatcher
-
addParam
Description copied from interface:ParamsAttributeAdds a parameter.The conversion to string may be deferred, or the value may be streamed instead of being converted to a string. It is incorrect to change the state of the provided value; doing so may or may not affect the value of the resulting parameter.
When the value is an
Enum, the parameter value is obtained fromEnum.name()instead ofEnum.toString(). This is to intuitively use enums as parameters whenEnum.toString()is overridden.Default method is for backward compatibility only. Implementations should override this version.
- Specified by:
addParamin interfaceParamsAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException Adds a dynamic attribute.- Returns:
truewhen added, orfalsewhen attribute not expected and has not been added.- Throws:
JspTagException- See Also:
-
setDynamicAttribute
@Deprecated public void setDynamicAttribute(String uri, String localName, Object value) throws JspException Deprecated.You should probably be implementing inaddDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List)Sets a dynamic attribute.- Specified by:
setDynamicAttributein interfaceDynamicAttributes- Throws:
JspException- See Also:
-
getArgs
Gets the arguments that will be passed on dispatch. For no arguments, return null. -
doTag
Subclass hook to intercept request after servlet paths have been determined and before dispatch is called.This default implementation does nothing.
- Throws:
SkipPageException- If the implementation has handled the request, must throw SkipPageException.IOExceptionJspException
-
doTag
Deprecated.You should probably be implementing indispatch(javax.servlet.RequestDispatcher, javax.servlet.jsp.JspWriter, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)- Specified by:
doTagin interfaceSimpleTag- Overrides:
doTagin classSimpleTagSupport- Throws:
JspExceptionIOException- See Also:
-
invoke
Invokes the body. This is only called when a body exists. Subclasses may override this to perform actions before and/or after invoking the body. Any overriding implementation should call super.invoke(JspFragment) to invoke the body.Discards all nested output, since this will not use the output and this output could possibly fill the response buffer and prevent the dispatch from functioning.
- Throws:
JspExceptionIOException
-

ScopeEE.Request.FORWARD_SERVLET_PATHdirectly.