Callable will be used by getXMLDocuments
It represents a single configuration resource (such as faces-config.xml) to be parsed into a DOM.
| Modifier and Type | Field and Description |
|---|---|
| private final URI | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | FACES_TO_1_1_PRIVATE_XSL
Stylesheet to convert 1.0 and 1.1 based faces-config documents to our private 1.1 schema for validation. |
| private DocumentBuilderFactory | |
| private static final Logger | |
| private final ServletContext | |
| private final boolean | |
| public static final String | WEB_INF_MARKER
Name of the attribute added by ParseTask to indicate a |
| Access | Constructor and Description |
|---|---|
| public | ParseConfigResourceToDOMTask(ServletContext
the servlet context. servletContext, boolean whether or not we're validating validating, URI a URL to the configuration resource to be parsed documentURI)Constructs a new ParseTask instance |
| Modifier and Type | Method and Description |
|---|---|
| public DocumentInfo | Returns: the result of the parse operation (a DOM)Implements java. Computes a result, or throws an exception if unable to do so. |
| private Schema | |
| private DocumentBuilder | |
| private Document | |
| private Document | |
| private static InputStream | |
| private DocumentBuilder | |
| private static Transformer | Returns: a new Tranformer instanceObtain a |
| private String | |
| private boolean | |
| private Document | |
| private Document | |
| private Document | |
| private boolean | |
| private static DOMResult |
| documentURI | back to summary |
|---|---|
| private final URI documentURI | |
| EMPTY_FACES_CONFIG | back to summary |
|---|---|
| private static final String EMPTY_FACES_CONFIG | |
| FACELET_TAGLIB_TAGNAME | back to summary |
|---|---|
| private static final String FACELET_TAGLIB_TAGNAME | |
| FACES_CONFIG_TAGNAME | back to summary |
|---|---|
| private static final String FACES_CONFIG_TAGNAME | |
| FACES_TO_1_1_PRIVATE_XSL | back to summary |
|---|---|
| private static final String FACES_TO_1_1_PRIVATE_XSL Stylesheet to convert 1.0 and 1.1 based faces-config documents to our private 1.1 schema for validation. | |
| factory | back to summary |
|---|---|
| private DocumentBuilderFactory factory | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| servletContext | back to summary |
|---|---|
| private final ServletContext servletContext | |
| validating | back to summary |
|---|---|
| private final boolean validating | |
| WEB_INF_MARKER | back to summary |
|---|---|
| public static final String WEB_INF_MARKER Name of the attribute added by ParseTask to indicate a | |
| ParseConfigResourceToDOMTask | back to summary |
|---|---|
| public ParseConfigResourceToDOMTask(ServletContext servletContext, boolean validating, URI documentURI) throws Exception Constructs a new ParseTask instance
| |
| call | back to summary |
|---|---|
| public DocumentInfo call() throws Exception Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| findMatchingSchema | back to summary |
|---|---|
| private Schema findMatchingSchema(String documentNS, String version, String localName) | |
| getBuilderForSchema | back to summary |
|---|---|
| private DocumentBuilder getBuilderForSchema(Schema schema) throws Exception | |
| getDocument | back to summary |
|---|---|
| private Document getDocument() throws Exception | |
| getEmptyFacesConfig | back to summary |
|---|---|
| private Document getEmptyFacesConfig(DocumentBuilder documentBuilder) throws SAXException, IOException | |
| getInputStream | back to summary |
|---|---|
private static InputStream getInputStream(URL url) throws IOException
| |
| getNonValidatingBuilder | back to summary |
|---|---|
| private DocumentBuilder getNonValidatingBuilder() throws Exception | |
| getTransformer | back to summary |
|---|---|
| private static Transformer getTransformer(String documentNS) throws Exception Obtain a
| |
| getVersion | back to summary |
|---|---|
| private String getVersion(Node documentElement) | |
| isNonFacesConfigDocument | back to summary |
|---|---|
| private boolean isNonFacesConfigDocument(String rootElementTagName) | |
| loadDocument | back to summary |
|---|---|
| private Document loadDocument(Schema schema, DOMSource domSource) throws Exception | |
| loadDocument | back to summary |
|---|---|
| private Document loadDocument(Schema schema, DOMResult domResult) throws Exception | |
| parseDocumentFromURL | back to summary |
|---|---|
| private Document parseDocumentFromURL(DocumentBuilder documentBuilder, URL documentURL) throws SAXException, IOException | |
| streamIsZeroLengthOrEmpty | back to summary |
|---|---|
| private boolean streamIsZeroLengthOrEmpty(InputStream is) throws IOException | |
| transformDocument | back to summary |
|---|---|
| private static DOMResult transformDocument(String documentNS, DOMSource domSource) throws Exception | |