public abstract class ImportSupport extends jakarta.servlet.jsp.tagext.BodyTagSupport implements jakarta.servlet.jsp.tagext.TryCatchFinally, ParamParent
Support for tag handlers for <import>, the general-purpose text-importing mechanism for JSTL 1.0. The rtexprvalue and expression- evaluating libraries each have handlers that extend this class.
Modifier and Type | Field and Description |
---|---|
protected String |
charEncoding |
protected String |
context |
static String |
DEFAULT_ENCODING
Default character encoding for response.
|
protected String |
url |
static String |
VALID_SCHEME_CHARS
Valid characters in a scheme.
|
Constructor and Description |
---|
ImportSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value)
Adds a parameter to this tag's URL.
|
void |
doCatch(Throwable t) |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
static boolean |
isAbsoluteUrl(String url)
Returns true if our current URL is absolute,
false otherwise.
|
void |
release() |
void |
setScope(String scope) |
void |
setVar(String var) |
void |
setVarReader(String varReader) |
static String |
stripSession(String url)
Strips a servlet session ID from url.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final String VALID_SCHEME_CHARS
Valid characters in a scheme.
RFC 1738 says the following:
Scheme names consist of a sequence of characters. The lower case letters "a"--"z", digits, and the characters plus ("+"), period ("."), and hyphen ("-") are allowed. For resiliency, programs interpreting URLs should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http").
We treat as absolute any URL that begins with such a scheme name, followed by a colon.
public static final String DEFAULT_ENCODING
protected String url
protected String context
protected String charEncoding
public int doStartTag() throws jakarta.servlet.jsp.JspException
doStartTag
in interface jakarta.servlet.jsp.tagext.Tag
doStartTag
in class jakarta.servlet.jsp.tagext.BodyTagSupport
jakarta.servlet.jsp.JspException
public int doEndTag() throws jakarta.servlet.jsp.JspException
doEndTag
in interface jakarta.servlet.jsp.tagext.Tag
doEndTag
in class jakarta.servlet.jsp.tagext.BodyTagSupport
jakarta.servlet.jsp.JspException
public void doCatch(Throwable t) throws Throwable
doCatch
in interface jakarta.servlet.jsp.tagext.TryCatchFinally
Throwable
public void doFinally()
doFinally
in interface jakarta.servlet.jsp.tagext.TryCatchFinally
public void release()
release
in interface jakarta.servlet.jsp.tagext.Tag
release
in class jakarta.servlet.jsp.tagext.BodyTagSupport
public void setVar(String var)
public void setVarReader(String varReader)
public void setScope(String scope)
public void addParameter(String name, String value)
ParamParent
addParameter
in interface ParamParent
ParamSupport
public static boolean isAbsoluteUrl(String url)
Copyright © 2019,2020 Eclipse Foundation. All rights reserved.