com.sun.tools.ws.processor.modeler.wsdl
Class WSDLModeler
java.lang.Object
com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler
- All Implemented Interfaces:
- Modeler
public class WSDLModeler
- extends WSDLModelerBase
The WSDLModeler processes a WSDL to create a Model.
Fields inherited from class com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase |
_bindingNameToPortMap, _faultTypeToStructureMap, _javaExceptions, _javaTypes, document, errReceiver, forest, info, MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING, NULL_LOCATOR, numPasses, OPERATION_HAS_VOID_RETURN_TYPE, options, parser, useWSIBasicProfile, WSDL_PARAMETER_ORDER, WSDL_RESULT_PARAMETER |
Method Summary |
protected void |
buildJAXBModel(WSDLDocument wsdlDocument)
|
Model |
buildModel()
Returns the top model of a Web Service. |
protected boolean |
createJavaExceptionFromLiteralType(Fault fault,
Port port,
String operationName)
|
protected void |
createJavaInterfaceForPort(Port port,
boolean isProvider)
|
protected void |
createJavaInterfaceForProviderPort(Port port)
|
protected void |
createJavaMethodForOperation(Port port,
Operation operation,
JavaInterface intf)
|
protected String |
getAsyncOperationName(Operation operation)
|
protected List<String> |
getAsynParameterOrder()
|
protected String |
getClassName(Port port,
String suffix)
|
protected String |
getJavaNameForOperation(Operation operation)
|
protected String |
getJavaNameOfSEI(Port port)
|
protected String |
getJavaPackage()
|
protected JAXBModelBuilder |
getJAXBModelBuilder()
|
protected List<MessagePart> |
getParameterOrder()
|
protected String |
getServiceInterfaceName(QName serviceQName,
Service wsdlService)
|
protected void |
handleLiteralSOAPFault(Response response,
Set duplicateNames)
|
protected void |
handleLiteralSOAPHeaders(Request request,
Response response,
Iterator headerParts,
Set duplicateNames,
List<String> definitiveParameterList,
boolean processRequest)
|
protected boolean |
isAsync(PortType portType,
Operation wsdlOperation)
|
protected boolean |
isConflictingExceptionClassName(String name)
|
protected boolean |
isConflictingPortClassName(String name)
|
protected boolean |
isConflictingServiceClassName(String name)
|
protected boolean |
isRequestResponse()
|
protected boolean |
isSingleInOutPart(Set inputParameterNames,
MessagePart outputPart)
|
protected boolean |
isUnwrappable()
|
protected Operation |
processLiteralSOAPOperation(WSDLModeler.StyleAndUse styleAndUse)
|
protected boolean |
processPort(Port wsdlPort,
Service service,
WSDLDocument document)
|
protected void |
processService(Service wsdlService,
Model model,
WSDLDocument document)
|
protected Operation |
processSOAPOperation()
|
protected static void |
setDocumentationIfPresent(ModelObject obj,
Documentation documentation)
|
protected boolean |
setMessagePartsBinding(SOAPBody body,
Message message,
WSDLModeler.StyleAndUse styleAndUse,
boolean isInput)
|
protected boolean |
setMessagePartsBinding(WSDLModeler.StyleAndUse styleAndUse)
|
protected boolean |
validateWSDLBindingStyle(Binding binding)
|
Methods inherited from class com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase |
applyPortMethodCustomization, error, findMessage, getAlternateMimeTypes, getAnyExtensionOfType, getDuplicateFaultNames, getExtensionOfType, getHeaderExtensions, getInputMessage, getLiteralJavaMemberName, getMessageParts, getMimeContentParts, getMimeContents, getMimeContents, getMimeParts, getOutputMessage, getQNameOf, getRequestNamespaceURI, getResponseNamespaceURI, getSOAPRequestBody, getSOAPResponseBody, getUniqueClassName, getUniqueName, isConflictingClassName, isConflictingStubClassName, isConflictingTieClassName, isProvider, isRequestMimeMultipart, isResponseMimeMultipart, isStyleAndPartMatch, makePackageQualified, tokenListContains, validateBodyParts, validateMimeParts, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSDLModeler
public WSDLModeler(WsimportOptions options,
ErrorReceiver receiver)
buildModel
public Model buildModel()
- Description copied from interface:
Modeler
- Returns the top model of a Web Service. May throw a
ModelException if there is a problem with the model.
- Returns:
- Model - the root Node of the model of the Web Service
processService
protected void processService(Service wsdlService,
Model model,
WSDLDocument document)
processPort
protected boolean processPort(Port wsdlPort,
Service service,
WSDLDocument document)
processSOAPOperation
protected Operation processSOAPOperation()
processLiteralSOAPOperation
protected Operation processLiteralSOAPOperation(WSDLModeler.StyleAndUse styleAndUse)
getAsyncOperationName
protected String getAsyncOperationName(Operation operation)
isAsync
protected boolean isAsync(PortType portType,
Operation wsdlOperation)
handleLiteralSOAPHeaders
protected void handleLiteralSOAPHeaders(Request request,
Response response,
Iterator headerParts,
Set duplicateNames,
List<String> definitiveParameterList,
boolean processRequest)
handleLiteralSOAPFault
protected void handleLiteralSOAPFault(Response response,
Set duplicateNames)
setMessagePartsBinding
protected boolean setMessagePartsBinding(WSDLModeler.StyleAndUse styleAndUse)
setMessagePartsBinding
protected boolean setMessagePartsBinding(SOAPBody body,
Message message,
WSDLModeler.StyleAndUse styleAndUse,
boolean isInput)
isConflictingPortClassName
protected boolean isConflictingPortClassName(String name)
- Overrides:
isConflictingPortClassName
in class WSDLModelerBase
isUnwrappable
protected boolean isUnwrappable()
isSingleInOutPart
protected boolean isSingleInOutPart(Set inputParameterNames,
MessagePart outputPart)
buildJAXBModel
protected void buildJAXBModel(WSDLDocument wsdlDocument)
getJavaPackage
protected String getJavaPackage()
createJavaInterfaceForProviderPort
protected void createJavaInterfaceForProviderPort(Port port)
createJavaInterfaceForPort
protected void createJavaInterfaceForPort(Port port,
boolean isProvider)
getServiceInterfaceName
protected String getServiceInterfaceName(QName serviceQName,
Service wsdlService)
getJavaNameOfSEI
protected String getJavaNameOfSEI(Port port)
createJavaMethodForOperation
protected void createJavaMethodForOperation(Port port,
Operation operation,
JavaInterface intf)
createJavaExceptionFromLiteralType
protected boolean createJavaExceptionFromLiteralType(Fault fault,
Port port,
String operationName)
isRequestResponse
protected boolean isRequestResponse()
getAsynParameterOrder
protected List<String> getAsynParameterOrder()
getParameterOrder
protected List<MessagePart> getParameterOrder()
getClassName
protected String getClassName(Port port,
String suffix)
- Parameters:
port
- suffix
-
- Returns:
- the Java ClassName for a port
isConflictingServiceClassName
protected boolean isConflictingServiceClassName(String name)
- Overrides:
isConflictingServiceClassName
in class WSDLModelerBase
isConflictingExceptionClassName
protected boolean isConflictingExceptionClassName(String name)
- Overrides:
isConflictingExceptionClassName
in class WSDLModelerBase
getJAXBModelBuilder
protected JAXBModelBuilder getJAXBModelBuilder()
validateWSDLBindingStyle
protected boolean validateWSDLBindingStyle(Binding binding)
setDocumentationIfPresent
protected static void setDocumentationIfPresent(ModelObject obj,
Documentation documentation)
getJavaNameForOperation
protected String getJavaNameForOperation(Operation operation)