Package org.glassfish.web.embed.impl
Class EmbeddedWebEntityResolver
- java.lang.Object
-
- org.glassfish.web.embed.impl.EmbeddedWebEntityResolver
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
,EntityResolver
public class EmbeddedWebEntityResolver extends Object implements EntityResolver, org.glassfish.hk2.api.PostConstruct
For Embedded GlassFish, override loading of known DTDs via getClass().getResource() whenever there is no installRoot/lib/dtds to avoid fetching the DTDs via HttpUrlConnection.- Author:
- [email protected]
- See Also:
WebEntityResolver.resolveEntity(String, String)
-
-
Constructor Summary
Constructors Constructor Description EmbeddedWebEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
__resolveEntity(String publicId, String systemId)
Try to fetch DTD from installRoot.void
postConstruct()
InputSource
resolveEntity(String publicId, String systemId)
Fetch the DTD via getClass().getResource() if the DTD is not
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
Fetch the DTD via getClass().getResource() if the DTD is not- Specified by:
resolveEntity
in interfaceEntityResolver
- Parameters:
publicId
-systemId
-- Returns:
- Throws:
SAXException
IOException
-
__resolveEntity
public InputSource __resolveEntity(String publicId, String systemId) throws SAXException, IOException
Try to fetch DTD from installRoot. Copied from org.glassfish.web.WebEntityResolver- Throws:
SAXException
IOException
-
-