Class WebEntityResolver

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, EntityResolver

    @Service(name="web")
    @ContractsProvided({WebEntityResolver.class,org.xml.sax.EntityResolver.class})
    public class WebEntityResolver
    extends Object
    implements EntityResolver, org.glassfish.hk2.api.PostConstruct
    EntityResolver that recognizes known public IDs of JavaEE DTDs/schemas and return a local copy.

    This implementation assumes that those files are available in $INSTALL_ROOT/lib/schemas and $INSTALL_ROOT/lib/dtds, but in different environment, different implementation can be plugged in to perform entirely different resolution.

    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • knownDTDs

        public final Map<String,​String> knownDTDs
        Known DTDs. Expose the map so that interested party can introspect the table value and modify them.
    • Constructor Detail

      • WebEntityResolver

        public WebEntityResolver()