Package com.groiss.ws

Class ClasspathResolver

java.lang.Object
org.apache.ws.commons.schema.resolver.DefaultURIResolver
com.groiss.ws.ClasspathResolver
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator, org.apache.ws.commons.schema.resolver.CollectionURIResolver, org.apache.ws.commons.schema.resolver.URIResolver, LSResourceResolver, EntityResolver

public class ClasspathResolver extends org.apache.ws.commons.schema.resolver.DefaultURIResolver implements javax.wsdl.xml.WSDLLocator, LSResourceResolver, EntityResolver
implements differenet kinds of resolvers/locators and checks for references in the classpath
  • Constructor Details

    • ClasspathResolver

      public ClasspathResolver()
    • ClasspathResolver

      public ClasspathResolver(Element baseWsdl, String baseUri)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface javax.wsdl.xml.WSDLLocator
    • getBaseInputSource

      public InputSource getBaseInputSource()
      Specified by:
      getBaseInputSource in interface javax.wsdl.xml.WSDLLocator
    • getBaseURI

      public String getBaseURI()
      Specified by:
      getBaseURI in interface javax.wsdl.xml.WSDLLocator
    • normalize

      protected String normalize(String parent, String location)
    • getImportInputSource

      public InputSource getImportInputSource(String parent, String location)
      Specified by:
      getImportInputSource in interface javax.wsdl.xml.WSDLLocator
    • getLatestImportURI

      public String getLatestImportURI()
      Specified by:
      getLatestImportURI in interface javax.wsdl.xml.WSDLLocator
    • resolveResource

      public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)
      Specified by:
      resolveResource in interface LSResourceResolver
    • resolveEntity

      public InputSource resolveEntity(String namespace, String location, String parent)
      Specified by:
      resolveEntity in interface org.apache.ws.commons.schema.resolver.URIResolver
      Overrides:
      resolveEntity in class org.apache.ws.commons.schema.resolver.DefaultURIResolver
    • resolveEntity

      public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
      Specified by:
      resolveEntity in interface EntityResolver
      Throws:
      SAXException
      IOException