Create and configure DocumentBuilderFactory instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | FACELET_TAGLIB_2_0_XSD
Location of the facelet-taglib 2.0 Schema |
| private static final String | FACELET_TAGLIB_2_0_XSD_FILE
Location of the facelet taglib xsd within GlassFish. |
| private static final String | FACELET_TAGLIB_2_2_XSD
Location of the facelet-taglib 2.2 Schema |
| private static final String | FACELET_TAGLIB_2_2_XSD_FILE
Location of the facelet taglib xsd within GlassFish. |
| private static final String | FACES_1_1_XSD
Location of the Faces private 1.1 Schema |
| private static final String | FACES_1_2_XSD
Location of the Faces 1.2 Schema |
| private static final String | FACES_1_2_XSD_FILE
Location of the faces 1.2 xsd within GlassFish. |
| private static final String | FACES_2_0_XSD
Location of the Faces 2.0 Schema |
| private static final String | FACES_2_0_XSD_FILE
Location of the faces 2.0 xsd within GlassFish. |
| private static final String | FACES_2_1_XSD
Location of the Faces 2.1 Schema |
| private static final String | FACES_2_1_XSD_FILE
Location of the faces 2.1 xsd within GlassFish. |
| private static final String | FACES_2_2_XSD
Location of the Faces 2.2 Schema |
| private static final String | FACES_2_2_XSD_FILE
Location of the faces 2.1 xsd within GlassFish. |
| private static final String | FACES_2_3_XSD
Location of the Faces 2.3 Schema |
| private static final String | FACES_2_3_XSD_FILE
Location of the faces 2.3 xsd within GlassFish. |
| public static final EntityResolver | FACES_ENTITY_RESOLVER
EntityResolver |
| public static final DbfFactory. | FACES_ERROR_HANDLER
ErrorHandler |
| private static final Logger | |
| private static final String | SCHEMA_MAP
The constant that points to the schema map (in the servlet context). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static DocumentBuilderFactory | |
| public static Schema | Returns: the schema, or null if not found.the backing servlet context. servletContext, DbfFactory.the schema id. schemaIdGet the schema for the given schema id. |
| private static Map | Returns: the schema map.the servlet context. servletContext)Get the schema map from the servlet context (or create it). |
| private static void | loadSchema(Map<DbfFactory.
the schema map. schemaMap,the schema id. schemaIdLoad the schema for the given schema id. |
| public static void | removeSchemaMap(ServletContext
the servlet context. servletContext)Remove the schema map from the servlet context. |
| AS_DTD_DIR | back to summary |
|---|---|
| private static final String AS_DTD_DIR | |
| AS_INSTALL_ROOT | back to summary |
|---|---|
| private static final String AS_INSTALL_ROOT | |
| AS_SCHEMA_DIR | back to summary |
|---|---|
| private static final String AS_SCHEMA_DIR | |
| FACELET_TAGLIB_2_0_XSD | back to summary |
|---|---|
| private static final String FACELET_TAGLIB_2_0_XSD Location of the facelet-taglib 2.0 Schema | |
| FACELET_TAGLIB_2_0_XSD_FILE | back to summary |
|---|---|
| private static final String FACELET_TAGLIB_2_0_XSD_FILE Location of the facelet taglib xsd within GlassFish. | |
| FACELET_TAGLIB_2_2_XSD | back to summary |
|---|---|
| private static final String FACELET_TAGLIB_2_2_XSD Location of the facelet-taglib 2.2 Schema | |
| FACELET_TAGLIB_2_2_XSD_FILE | back to summary |
|---|---|
| private static final String FACELET_TAGLIB_2_2_XSD_FILE Location of the facelet taglib xsd within GlassFish. | |
| FACES_1_1_XSD | back to summary |
|---|---|
| private static final String FACES_1_1_XSD Location of the Faces private 1.1 Schema | |
| FACES_1_2_XSD | back to summary |
|---|---|
| private static final String FACES_1_2_XSD Location of the Faces 1.2 Schema | |
| FACES_1_2_XSD_FILE | back to summary |
|---|---|
| private static final String FACES_1_2_XSD_FILE Location of the faces 1.2 xsd within GlassFish. | |
| FACES_2_0_XSD | back to summary |
|---|---|
| private static final String FACES_2_0_XSD Location of the Faces 2.0 Schema | |
| FACES_2_0_XSD_FILE | back to summary |
|---|---|
| private static final String FACES_2_0_XSD_FILE Location of the faces 2.0 xsd within GlassFish. | |
| FACES_2_1_XSD | back to summary |
|---|---|
| private static final String FACES_2_1_XSD Location of the Faces 2.1 Schema | |
| FACES_2_1_XSD_FILE | back to summary |
|---|---|
| private static final String FACES_2_1_XSD_FILE Location of the faces 2.1 xsd within GlassFish. | |
| FACES_2_2_XSD | back to summary |
|---|---|
| private static final String FACES_2_2_XSD Location of the Faces 2.2 Schema | |
| FACES_2_2_XSD_FILE | back to summary |
|---|---|
| private static final String FACES_2_2_XSD_FILE Location of the faces 2.1 xsd within GlassFish. | |
| FACES_2_3_XSD | back to summary |
|---|---|
| private static final String FACES_2_3_XSD Location of the Faces 2.3 Schema | |
| FACES_2_3_XSD_FILE | back to summary |
|---|---|
| private static final String FACES_2_3_XSD_FILE Location of the faces 2.3 xsd within GlassFish. | |
| FACES_ENTITY_RESOLVER | back to summary |
|---|---|
| public static final EntityResolver FACES_ENTITY_RESOLVER EntityResolver | |
| FACES_ERROR_HANDLER | back to summary |
|---|---|
| public static final DbfFactory. ErrorHandler | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| SCHEMA_MAP | back to summary |
|---|---|
| private static final String SCHEMA_MAP The constant that points to the schema map (in the servlet context). | |
| DbfFactory | back to summary |
|---|---|
| public DbfFactory() | |
| getFactory | back to summary |
|---|---|
| public static DocumentBuilderFactory getFactory() | |
| getSchema | back to summary |
|---|---|
| public static Schema getSchema(ServletContext servletContext, DbfFactory. Get the schema for the given schema id.
| |
| getSchemaMap | back to summary |
|---|---|
| private static Map Get the schema map from the servlet context (or create it).
| |
| loadSchema | back to summary |
|---|---|
| private static void loadSchema(Map<DbfFactory. Load the schema for the given schema id.
| |
| removeSchemaMap | back to summary |
|---|---|
| public static void removeSchemaMap(ServletContext servletContext) Remove the schema map from the servlet context.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String[][] | DTD_SCHEMA_INFO
Contains associations between grammar name and the physical resource. |
| private HashMap | entities
Contains mapping between grammar name and the local URL to the physical resource. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputSource | resolveEntity(String
The public identifier, or null if none is
available. publicId, String The system identifier provided in the XML
document. systemId)Overrides org. Implements org. Resolves the physical resource using the last segment of
the |
| public LSInput | resolveResource(String
The type of the resource being resolved. For XML [XML 1.0] resources
(i.e. entities), applications must use the value
type, String "http://www.w3.org/TR/REC-xml". For XML Schema [XML Schema Part 1]
, applications must use the value
"http://www.w3.org/2001/XMLSchema". Other types of
resources are outside the scope of this specification and therefore
should recommend an absolute URI in order to use this method.The namespace of the resource being resolved,
e.g. the target namespace of the XML Schema [XML Schema Part 1]
when resolving XML Schema resources. namespaceURI, String The public identifier of the external entity being
referenced, or publicId, String null if no public identifier was
supplied or if the resource is not an entity.The system identifier, a URI reference [IETF RFC 2396], of the
external resource being referenced, or systemId, String null if no
system identifier was supplied.The absolute base URI of the resource being parsed, or
baseURI)null if there is no base URI.Implements org. |
| DTD_SCHEMA_INFO | back to summary |
|---|---|
| private static final String[][] DTD_SCHEMA_INFO Contains associations between grammar name and the physical resource. | |
| entities | back to summary |
|---|---|
| private HashMap<String, String> entities Contains mapping between grammar name and the local URL to the physical resource. | |
| FacesEntityResolver | back to summary |
|---|---|
| public FacesEntityResolver() | |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) throws SAXException Overrides org. Implements org. Resolves the physical resource using the last segment of
the
| |
| resolveResource | back to summary |
|---|---|
| public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) Implements org. Doc from org. Allow the application to resolve external resources.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(SAXParseException
The error information encapsulated in a
SAX parse exception. exception)Implements org. |
| public void | fatalError(SAXParseException
The error information encapsulated in a
exception)SAXParseException.Implements org. |
| public void | warning(SAXParseException
The warning information encapsulated in a
SAX parse exception. exception)Implements org. |
| FacesErrorHandler | back to summary |
|---|---|
| private FacesErrorHandler() | |
| error | back to summary |
|---|---|
| public void error(SAXParseException exception) throws SAXException Implements org. Doc from org. Receive notification of a recoverable error. This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action. The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. If the application cannot do so, then the parser should report a fatal error even if the XML recommendation does not require it to do so. Filters may use this method to report other, non-XML errors as well.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException exception) throws SAXException Implements org. Doc from org. Receive notification of a non-recoverable, fatal error. As defined in section 1.2 of the W3C XML 1.0 Recommendation, fatal errors are those that would make it impossible for a parser to continue normal processing. These include violation of a well-formedness constraint, invalid encoding, and forbidden structural errors as described in the W3C XML 1.0 Recommendation.
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException exception) throws SAXException Implements org. Doc from org. Receive notification of a warning. SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation. The default behaviour is to take no action. The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. Filters may use this method to report other, non-XML warnings as well.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. | |
| public static final DbfFactory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DbfFactory. | |
| public static DbfFactory. |
| FACELET_TAGLIB_20 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACELET_TAGLIB_22 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_11 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_12 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_20 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_21 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_22 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FACES_23 | back to summary |
|---|---|
| public static final DbfFactory. | |
| FacesSchema | back to summary |
|---|---|
| private FacesSchema() | |
| valueOf | back to summary |
|---|---|
| public static DbfFactory. | |
| values | back to summary |
|---|---|
| public static DbfFactory. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getBaseURI()
Implements org. systemId to an absolute URI.
|
| public InputStream | getByteStream()
Implements org. |
| public boolean | getCertifiedText()
Implements org. |
| public Reader | getCharacterStream()
Implements org. |
| public String | |
| public String | getPublicId()
Implements org. |
| public String | |
| public String | getSystemId()
Implements org. |
| public void | setBaseURI(String baseURI)
Implements org. systemId to an absolute URI.
|
| public void | setByteStream(InputStream byteStream)
Implements org. |
| public void | setCertifiedText(boolean certifiedText)
Implements org. |
| public void | setCharacterStream(Reader characterStream)
Implements org. |
| public void | setEncoding(String encoding)
Implements org. |
| public void | setPublicId(String publicId)
Implements org. |
| public void | setStringData(String stringData)
Implements org. |
| public void | setSystemId(String systemId)
Implements org. |
| in | back to summary |
|---|---|
| pack-priv InputStream in | |
| Input | back to summary |
|---|---|
| public Input(InputStream in) | |
| getBaseURI | back to summary |
|---|---|
| public String getBaseURI() Implements org. Doc from org. The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for
resolving a relative
| |
| getByteStream | back to summary |
|---|---|
| public InputStream getByteStream() Implements org. Doc from org. An attribute of a language and binding dependent type that represents
a stream of bytes.
| |
| getCertifiedText | back to summary |
|---|---|
| public boolean getCertifiedText() Implements org. Doc from org. If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream() Implements org. Doc from org. An attribute of a language and binding dependent type that represents a stream of 16-bit units. The application must encode the stream using UTF-16 (defined in [Unicode] and in [ISO/IEC 10646]). It is not a requirement to have an XML declaration when using character streams. If an XML declaration is present, the value of the encoding attribute will be ignored.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Implements org. Doc from org. The character encoding, if known. The encoding must be a string
acceptable for an XML encoding declaration ([XML 1.0] section
4.3.3 "Character Encoding in Entities").
| |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Implements org. Doc from org. The public identifier for this input source. This may be mapped to an input source using an implementation dependent mechanism (such as catalogues or other mappings). The public identifier, if specified, may also be reported as part of the location information when errors are reported.
| |
| getStringData | back to summary |
|---|---|
| public String getStringData() Implements org. Doc from org. String data to parse. If provided, this will always be treated as a
sequence of 16-bit units (UTF-16 encoded characters). It is not a
requirement to have an XML declaration when using
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements org. Doc from org. The system identifier, a URI reference [IETF RFC 2396], for this
input source. The system identifier is optional if there is a byte
stream, a character stream, or string data. It is still useful to
provide one, since the application will use it to resolve any
relative URIs and can include it in error messages and warnings. (The
LSParser will only attempt to fetch the resource identified by the
URI reference if there is no other input available in the input
source.)
| |
| setBaseURI | back to summary |
|---|---|
| public void setBaseURI(String baseURI) Implements org. Doc from org. The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for
resolving a relative
| |
| setByteStream | back to summary |
|---|---|
| public void setByteStream(InputStream byteStream) Implements org. Doc from org. An attribute of a language and binding dependent type that represents
a stream of bytes.
| |
| setCertifiedText | back to summary |
|---|---|
| public void setCertifiedText(boolean certifiedText) Implements org. Doc from org. If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].
| |
| setCharacterStream | back to summary |
|---|---|
| public void setCharacterStream(Reader characterStream) Implements org. Doc from org. An attribute of a language and binding dependent type that represents a stream of 16-bit units. The application must encode the stream using UTF-16 (defined in [Unicode] and in [ISO/IEC 10646]). It is not a requirement to have an XML declaration when using character streams. If an XML declaration is present, the value of the encoding attribute will be ignored.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Implements org. Doc from org. The character encoding, if known. The encoding must be a string
acceptable for an XML encoding declaration ([XML 1.0] section
4.3.3 "Character Encoding in Entities").
| |
| setPublicId | back to summary |
|---|---|
| public void setPublicId(String publicId) Implements org. Doc from org. The public identifier for this input source. This may be mapped to an input source using an implementation dependent mechanism (such as catalogues or other mappings). The public identifier, if specified, may also be reported as part of the location information when errors are reported.
| |
| setStringData | back to summary |
|---|---|
| public void setStringData(String stringData) Implements org. Doc from org. String data to parse. If provided, this will always be treated as a
sequence of 16-bit units (UTF-16 encoded characters). It is not a
requirement to have an XML declaration when using
| |
| setSystemId | back to summary |
|---|---|
| public void setSystemId(String systemId) Implements org. Doc from org. The system identifier, a URI reference [IETF RFC 2396], for this
input source. The system identifier is optional if there is a byte
stream, a character stream, or string data. It is still useful to
provide one, since the application will use it to resolve any
relative URIs and can include it in error messages and warnings. (The
LSParser will only attempt to fetch the resource identified by the
URI reference if there is no other input available in the input
source.)
| |