com.sun.xml.ws.mex.client
Class ServiceDescriptorImpl

java.lang.Object
  extended by com.sun.xml.ws.api.wsdl.parser.ServiceDescriptor
      extended by com.sun.xml.ws.mex.client.ServiceDescriptorImpl

public class ServiceDescriptorImpl
extends ServiceDescriptor

This class is used by the JAX-WS code when it needs to retrieve metadata from an endpoint using mex. An address is passed into the MetadataResolverImpl class, which creates a service descriptor and returns it.

Because wsdl and schema import@location attributes are removed from the data when empty, this class will add them back in for wsdl imports. The value that is used for the attribute matches the systemId of the Source that contains the imported wsdl (which may be different from the target namespace of the wsdl).


Constructor Summary
ServiceDescriptorImpl(Metadata mData)
          The ServiceDescriptorImpl constructor does the work of parsing the data in the Metadata object.
 
Method Summary
 List<Source> getSchemas()
          Gives list of schemas.
 List<Source> getWSDLs()
          Gives list of wsdls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescriptorImpl

public ServiceDescriptorImpl(Metadata mData)
The ServiceDescriptorImpl constructor does the work of parsing the data in the Metadata object.

Method Detail

getWSDLs

public List<Source> getWSDLs()
Description copied from class: ServiceDescriptor
Gives list of wsdls

Specified by:
getWSDLs in class ServiceDescriptor
Returns:
List of WSDL documents as Source. Source.getSystemId() must be Non-null

getSchemas

public List<Source> getSchemas()
Description copied from class: ServiceDescriptor
Gives list of schemas.

Specified by:
getSchemas in class ServiceDescriptor
Returns:
List of XML schema documents as Source. Source.getSystemId() must be Non-null.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.