com.sun.xml.ws.policy.jaxws
Class PolicyConfigResolver
java.lang.Object
com.sun.xml.ws.policy.jaxws.PolicyConfigResolver
- All Implemented Interfaces:
- com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver
public class PolicyConfigResolver
- extends java.lang.Object
- implements com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver
Assumes that a given XML entity holds a valid URL and returns an
XMLEntityResolver.Parser for that URL. An XMLEntityResolver.Parser is
essentially a wrapper around an XMLStreamReader.
Nested classes/interfaces inherited from interface com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver |
com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver.Parser |
Method Summary |
com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver.Parser |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Assumes that a given XML entity holds a valid URL and returns an
XMLEntityResolver.Parser for that URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyConfigResolver
public PolicyConfigResolver()
resolveEntity
public com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver.Parser resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws javax.xml.stream.XMLStreamException,
java.io.IOException
- Assumes that a given XML entity holds a valid URL and returns an
XMLEntityResolver.Parser for that URL.
- Specified by:
resolveEntity
in interface com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver
- Parameters:
publicId
- The public ID of the entity. This parameter is ignored.systemId
- The system ID of the entity. Must be a valid URL.
- Returns:
- A parser (i.e. an XMLStreamReader) for the systemId URL.
- Throws:
javax.xml.stream.XMLStreamException
- If the XMLStreamReader could not be created
java.io.IOException
- If the URL was invalid or a connection to the URL
failed- See Also:
XMLStreamReader
,
XMLEntityResolver.Parser