Package com.sun.faces.config.manager
Class DbfFactory
- java.lang.Object
-
- com.sun.faces.config.manager.DbfFactory
-
public class DbfFactory extends Object
Create and configure DocumentBuilderFactory instances.
-
-
Field Summary
Fields Modifier and Type Field Description static com.sun.faces.config.manager.DbfFactory.FacesEntityResolverFACES_ENTITY_RESOLVEREntityResolverstatic com.sun.faces.config.manager.DbfFactory.FacesErrorHandlerFACES_ERROR_HANDLERErrorHandler
-
Constructor Summary
Constructors Constructor Description DbfFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuilderFactorygetFactory()static SchemagetSchema(jakarta.servlet.ServletContext servletContext, FacesSchema schemaId)Get the schema for the given schema id.static SchemagetSchema(jakarta.servlet.ServletContext servletContext, String documentNS, String version, String localName)Get the schema for the given schema id.static SchemaloadSchema(String resourceName, String fileName)static voidremoveSchemaMap(jakarta.servlet.ServletContext servletContext)Remove the schema map from the servlet context.
-
-
-
Method Detail
-
getFactory
public static DocumentBuilderFactory getFactory()
-
getSchema
public static Schema getSchema(jakarta.servlet.ServletContext servletContext, String documentNS, String version, String localName)
Get the schema for the given schema id.- Parameters:
servletContext- the backing servlet context.documentNS- namespace of the documentversion- version attribute of the root tag, if anylocalName- name of the root tag- Returns:
- the schema, or null if not found.
-
getSchema
public static Schema getSchema(jakarta.servlet.ServletContext servletContext, FacesSchema schemaId)
Get the schema for the given schema id.- Parameters:
servletContext- the backing servlet context.schemaId- the schema id.- Returns:
- the schema, or null if not found.
-
removeSchemaMap
public static void removeSchemaMap(jakarta.servlet.ServletContext servletContext)
Remove the schema map from the servlet context.- Parameters:
servletContext- the servlet context.
-
loadSchema
public static Schema loadSchema(String resourceName, String fileName) throws SAXException, IOException
- Throws:
SAXExceptionIOException
-
-