com.sun.xml.ws.server
Class WSDLGenResolver

java.lang.Object
  extended by com.sun.xml.ws.server.WSDLGenResolver
All Implemented Interfaces:
WSDLResolver

final class WSDLGenResolver
extends Object
implements WSDLResolver

WSDLGenerator uses WSDLResolver while creating WSDL artifacts. WSDLResolver is used to control the file names and which artifact to be generated or not.


Constructor Summary
WSDLGenResolver(List<SDDocumentImpl> docs, QName serviceName, QName portTypeName)
           
 
Method Summary
 Result getAbstractWSDL(javax.xml.ws.Holder<String> filename)
          Updates filename if the suggested filename need to be changed in wsdl:import.
 Result getSchemaOutput(String namespace, javax.xml.ws.Holder<String> filename)
          Updates filename if the suggested filename need to be changed in xsd:import.
 Result getWSDL(String filename)
          Generates the concrete WSDL that contains service element.
 SDDocumentImpl updateDocs()
          Converts SDDocumentSource to SDDocumentImpl and updates original docs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLGenResolver

public WSDLGenResolver(@NotNull
                       List<SDDocumentImpl> docs,
                       QName serviceName,
                       QName portTypeName)
Method Detail

getWSDL

public Result getWSDL(String filename)
Generates the concrete WSDL that contains service element.

Specified by:
getWSDL in interface WSDLResolver
Returns:
Result the generated concrete WSDL

getAbstractWSDL

public Result getAbstractWSDL(javax.xml.ws.Holder<String> filename)
Updates filename if the suggested filename need to be changed in wsdl:import. If the metadata already contains abstract wsdl(i.e. a WSDL which has the porttype), then the abstract wsdl shouldn't be generated return null if abstract WSDL need not be generated Result the abstract WSDL

Specified by:
getAbstractWSDL in interface WSDLResolver
Returns:
null if abstract WSDL need not be generated

getSchemaOutput

public Result getSchemaOutput(String namespace,
                              javax.xml.ws.Holder<String> filename)
Updates filename if the suggested filename need to be changed in xsd:import. If there is already a schema document for the namespace in the metadata, then it is not generated. return null if schema need not be generated Result the generated schema document

Specified by:
getSchemaOutput in interface WSDLResolver
Returns:
null if schema need not be generated

updateDocs

public SDDocumentImpl updateDocs()
Converts SDDocumentSource to SDDocumentImpl and updates original docs. It categories the generated documents into WSDL, Schema types.

Returns:
the primary WSDL null if it is not there in the generated documents