com.sun.xml.ws.policy.jaxws
Class PolicyConfigResolver

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver
com.sun.xml.ws.api.wsdl.parser.XMLEntityResolver.Parser
 
Constructor Summary
PolicyConfigResolver()
           
 
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
 

Constructor Detail

PolicyConfigResolver

public PolicyConfigResolver()
Method Detail

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