- All Implemented Interfaces:
PageAttribute
,ParamsAttribute
,DynamicAttributes
,JspTag
,SimpleTag
- Direct Known Subclasses:
ForwardTag
,IncludeTag
,RedirectTag
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final ScopeEE.Request.Attribute
<Boolean> Deprecated.protected String
protected MutableURIParameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Adds a dynamic attribute.void
Adds a parameter.void
doTag()
Deprecated.You should probably be implementing indispatch(javax.servlet.RequestDispatcher, javax.servlet.jsp.JspWriter, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void
Subclass 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 WildcardPatternMatcher
static HttpServletRequest
getParameterAlteredRequest
(HttpServletRequest request, URIParameters params, Map<String, String[]> oldMap, WildcardPatternMatcher clearParamsMatcher) protected void
invoke
(JspFragment body) Invokes the body.static boolean
Deprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATH
directly.void
setDynamicAttribute
(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)
void
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.taglib.ParamsAttribute
addParam
-
Field Details
-
FORWARDED_REQUEST_ATTRIBUTE
Deprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATH
directly.Tracks if the request has been forwarded. -
page
-
params
-
-
Constructor Details
-
DispatchTag
public DispatchTag()
-
-
Method Details
-
isForwarded
Deprecated.Please useScopeEE.Request.FORWARD_SERVLET_PATH
directly.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:
setPage
in interfacePageAttribute
-
getClearParamsMatcher
-
addParam
Description copied from interface:ParamsAttribute
Adds 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:
addParam
in interfaceParamsAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException Adds a dynamic attribute.- Returns:
true
when added, orfalse
when 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:
setDynamicAttribute
in 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.IOException
JspException
-
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:
doTag
in interfaceSimpleTag
- Overrides:
doTag
in classSimpleTagSupport
- Throws:
JspException
IOException
- 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:
JspException
IOException
-
ScopeEE.Request.FORWARD_SERVLET_PATH
directly.