public abstract class ImportSupport extends javax.servlet.jsp.tagext.BodyTagSupport implements javax.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, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic 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 javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic void doCatch(Throwable t) throws Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyThrowablepublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallypublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setVar(String var)
public void setVarReader(String varReader)
public void setScope(String scope)
public void addParameter(String name, String value)
ParamParentaddParameter in interface ParamParentParamSupportpublic static boolean isAbsoluteUrl(String url)
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.