public class CoreUrlTag extends TagSupport implements NameValueTag
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
CoreUrlTag() |
Modifier and Type | Method and Description |
---|---|
static CharBuffer |
addEncodedLatin1(CharBuffer cb,
java.lang.String value)
Adds a parameter to the string, encoding with latin-1 when necessary.
|
static CharBuffer |
addEncodedString(CharBuffer cb,
java.lang.String value,
java.lang.String encoding)
Adds a parameter to the string, with the given encoding.
|
static CharBuffer |
addEncodedUTF8(CharBuffer cb,
java.lang.String value)
Adds a parameter to the string, encoding with UTF8 when necessary.
|
static CharBuffer |
addParam(CharBuffer url,
java.lang.String name,
java.lang.String value,
java.lang.String encoding) |
void |
addParam(java.lang.String name,
java.lang.String value)
Adds a parameter.
|
int |
doEndTag()
Processed at the end of the tag.
|
int |
doStartTag()
Processed at the beginning of the tag.
|
static java.lang.String |
encodeURL(PageContext pageContext,
CharBuffer url) |
static CharBuffer |
normalizeURL(PageContext pageContext,
java.lang.String url,
java.lang.String context) |
void |
setContext(java.lang.String context)
Sets the external context for the import.
|
void |
setScope(java.lang.String scope)
Sets the scope for the result variable for the output.
|
void |
setValue(java.lang.String value)
Sets the URL to be imported.
|
void |
setVar(java.lang.String var)
Sets the variable for the import.
|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
public void setValue(java.lang.String value)
public void setContext(java.lang.String context)
public void setVar(java.lang.String var)
public void setScope(java.lang.String scope)
public void addParam(java.lang.String name, java.lang.String value)
addParam
in interface NameValueTag
public int doStartTag() throws JspException
TagSupport
The default behavior returns SKIP_BODY to skip the tag's body.
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
TagSupport
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
public static CharBuffer normalizeURL(PageContext pageContext, java.lang.String url, java.lang.String context) throws JspException
JspException
public static CharBuffer addParam(CharBuffer url, java.lang.String name, java.lang.String value, java.lang.String encoding)
public static CharBuffer addEncodedString(CharBuffer cb, java.lang.String value, java.lang.String encoding)
public static CharBuffer addEncodedLatin1(CharBuffer cb, java.lang.String value)
public static CharBuffer addEncodedUTF8(CharBuffer cb, java.lang.String value)
public static java.lang.String encodeURL(PageContext pageContext, CharBuffer url)