|
|||||||||
| Home >> All >> org >> apache >> taglibs >> standard >> tag >> common >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.taglibs.standard.tag.common.xml
Class TransformSupport

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.standard.tag.common.xml.TransformSupport
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public abstract class TransformSupport
- extends javax.servlet.jsp.tagext.BodyTagSupport
Support for tag handlers for <transform>, the XML transformation tag.
| Nested Class Summary | |
private static class |
TransformSupport.JstlUriResolver
Lets us resolve relative external entities. |
private static class |
TransformSupport.SafeWriter
A Writer based on a wrapped Writer but ignoring requests to close() and flush() it. |
| Field Summary | |
private javax.xml.parsers.DocumentBuilder |
db
|
private javax.xml.parsers.DocumentBuilderFactory |
dbf
|
protected javax.xml.transform.Result |
result
|
private int |
scope
|
private javax.xml.transform.Transformer |
t
|
private javax.xml.transform.TransformerFactory |
tf
|
private java.lang.String |
var
|
protected java.lang.Object |
xml
|
protected java.lang.String |
xmlSystemId
|
protected java.lang.Object |
xslt
|
protected java.lang.String |
xsltSystemId
|
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
TransformSupport()
|
|
| Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.Object value)
Sets (adds) a transformation parameter on our transformer. |
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE. |
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED. |
private javax.xml.transform.Source |
getSource(java.lang.Object o,
java.lang.String systemId)
Retrieves a Source from the given Object, whether it be a String, Reader, Node, or other supported types (even a Source already). |
private void |
init()
|
void |
release()
Release state. |
void |
setScope(java.lang.String scope)
|
void |
setVar(java.lang.String var)
|
private static java.lang.String |
wrapSystemId(java.lang.String systemId)
Wraps systemId with a "jstl:" prefix to prevent the parser from thinking that the URI is truly relative and resolving it against the current directory in the filesystem. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Field Detail |
xml
protected java.lang.Object xml
xmlSystemId
protected java.lang.String xmlSystemId
xslt
protected java.lang.Object xslt
xsltSystemId
protected java.lang.String xsltSystemId
result
protected javax.xml.transform.Result result
var
private java.lang.String var
scope
private int scope
t
private javax.xml.transform.Transformer t
tf
private javax.xml.transform.TransformerFactory tf
db
private javax.xml.parsers.DocumentBuilder db
dbf
private javax.xml.parsers.DocumentBuilderFactory dbf
| Constructor Detail |
TransformSupport
public TransformSupport()
| Method Detail |
init
private void init()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport - Default processing of the start tag returning EVAL_BODY_BUFFERED.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport - Default processing of the end tag returning EVAL_PAGE.
release
public void release()
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport - Release state.
addParameter
public void addParameter(java.lang.String name, java.lang.Object value)
- Sets (adds) a transformation parameter on our transformer.
wrapSystemId
private static java.lang.String wrapSystemId(java.lang.String systemId)
- Wraps systemId with a "jstl:" prefix to prevent the parser from
thinking that the URI is truly relative and resolving it against
the current directory in the filesystem.
getSource
private javax.xml.transform.Source getSource(java.lang.Object o, java.lang.String systemId) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
- Retrieves a Source from the given Object, whether it be a String,
Reader, Node, or other supported types (even a Source already).
If 'url' is true, then we must be passed a String and will interpret
it as a URL. A null input always results in a null output.
setVar
public void setVar(java.lang.String var)
setScope
public void setScope(java.lang.String scope)
|
|||||||||
| Home >> All >> org >> apache >> taglibs >> standard >> tag >> common >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC