This Callable will be used by
ConfigManager#getXMLDocuments(javax.servlet.ServletContext, java.util.List, java.util.concurrent.ExecutorService, boolean).
It represents a single configuration resource to be parsed into a DOM.
| Modifier and Type | Field and Description |
|---|---|
| private URI | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | FACELETS_TO_2_0_XSL
Stylesheet to convert 1.0 facelet-taglib documents from 1.0 to 2.0 for schema validation purposes. |
| 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 String | |
| private static final String | |
| private static final Logger | |
| private ServletContext | |
| private 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. |
| private DocumentBuilder | |
| private Document | |
| private static InputStream | |
| private DocumentBuilder | |
| private static Transformer | Returns: a new Tranformer instanceObtain a |
| private boolean |
| documentURI | back to summary |
|---|---|
| private 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 | |
| FACELETS_1_0_DEFAULT_NS | back to summary |
|---|---|
| private static final String FACELETS_1_0_DEFAULT_NS | |
| FACELETS_TO_2_0_XSL | back to summary |
|---|---|
| private static final String FACELETS_TO_2_0_XSL Stylesheet to convert 1.0 facelet-taglib documents from 1.0 to 2.0 for schema validation purposes. | |
| FACES_CONFIG_1_X_DEFAULT_NS | back to summary |
|---|---|
| private static final String FACES_CONFIG_1_X_DEFAULT_NS | |
| 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 | |
| JAVAEE_SCHEMA_DEFAULT_NS | back to summary |
|---|---|
| private static final String JAVAEE_SCHEMA_DEFAULT_NS | |
| JAVAEE_SCHEMA_LEGACY_DEFAULT_NS | back to summary |
|---|---|
| private static final String JAVAEE_SCHEMA_LEGACY_DEFAULT_NS | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| servletContext | back to summary |
|---|---|
| private ServletContext servletContext | |
| validating | back to summary |
|---|---|
| private 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.
| |
| getBuilderForSchema | back to summary |
|---|---|
| private DocumentBuilder getBuilderForSchema(Schema schema) throws Exception | |
| getDocument | back to summary |
|---|---|
| private Document getDocument() throws Exception | |
| 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
| |
| streamIsZeroLengthOrEmpty | back to summary |
|---|---|
| private boolean streamIsZeroLengthOrEmpty(InputStream is) throws IOException | |