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.- Author:
- WS Development Team
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classWSDLModeler.StyleAndUse-
Nested classes/interfaces inherited from class com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase
WSDLModelerBase.ProcessSOAPOperationInfo
-
-
Field Summary
-
Fields inherited from class com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase
_bindingNameToPortMap, _faultTypeToStructureMap, _javaExceptions, document, errReceiver, forest, info, MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING, NULL_LOCATOR, OPERATION_HAS_VOID_RETURN_TYPE, options, parser, WSDL_PARAMETER_ORDER, WSDL_RESULT_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildJAXBModel(WSDLDocument wsdlDocument)ModelbuildModel()Returns the top model of a Web Service.protected booleancreateJavaExceptionFromLiteralType(Fault fault, Port port, String operationName)protected voidcreateJavaInterfaceForPort(Port port, boolean isProvider)protected voidcreateJavaInterfaceForProviderPort(Port port)protected voidcreateJavaMethodForOperation(Port port, Operation operation, JavaInterface intf)protected StringgetAsyncOperationName(Operation operation)protected List<String>getAsynParameterOrder()protected StringgetClassName(Port port, String suffix)protected StringgetJavaNameForOperation(Operation operation)protected StringgetJavaNameOfSEI(Port port)protected StringgetJavaPackage()protected JAXBModelBuildergetJAXBModelBuilder()protected List<MessagePart>getParameterOrder()protected StringgetServiceInterfaceName(QName serviceQName, Service wsdlService)protected voidhandleLiteralSOAPFault(Response response, Set duplicateNames)protected voidhandleLiteralSOAPHeaders(Request request, Response response, Iterator headerParts, Set duplicateNames, List<String> definitiveParameterList, boolean processRequest)protected booleanisAsync(PortType portType, Operation wsdlOperation)protected booleanisConflictingExceptionClassName(String name)protected booleanisConflictingPortClassName(String name)protected booleanisConflictingServiceClassName(String name)protected booleanisRequestResponse()protected booleanisSingleInOutPart(Set inputParameterNames, MessagePart outputPart)protected booleanisUnwrappable()protected OperationprocessLiteralSOAPOperation(WSDLModeler.StyleAndUse styleAndUse)protected booleanprocessPort(Port wsdlPort, Service service, WSDLDocument document)protected voidprocessService(Service wsdlService, Model model, WSDLDocument document)protected OperationprocessSOAPOperation()protected static voidsetDocumentationIfPresent(ModelObject obj, Documentation documentation)protected booleansetMessagePartsBinding(WSDLModeler.StyleAndUse styleAndUse)protected booleansetMessagePartsBinding(SOAPBody body, Message message, WSDLModeler.StyleAndUse styleAndUse, boolean isInput)protected booleanvalidateWSDLBindingStyle(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
-
-
-
-
Constructor Detail
-
WSDLModeler
public WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest)
-
-
Method Detail
-
buildModel
public Model buildModel()
Description copied from interface:ModelerReturns 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)
-
handleLiteralSOAPHeaders
protected void handleLiteralSOAPHeaders(Request request, Response response, Iterator headerParts, Set duplicateNames, @NotNull 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:
isConflictingPortClassNamein classWSDLModelerBase
-
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)
-
createJavaMethodForOperation
protected void createJavaMethodForOperation(Port port, Operation operation, JavaInterface intf)
-
createJavaExceptionFromLiteralType
protected boolean createJavaExceptionFromLiteralType(Fault fault, Port port, String operationName)
-
isRequestResponse
protected boolean isRequestResponse()
-
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:
isConflictingServiceClassNamein classWSDLModelerBase
-
isConflictingExceptionClassName
protected boolean isConflictingExceptionClassName(String name)
- Overrides:
isConflictingExceptionClassNamein classWSDLModelerBase
-
getJAXBModelBuilder
protected JAXBModelBuilder getJAXBModelBuilder()
-
validateWSDLBindingStyle
protected boolean validateWSDLBindingStyle(Binding binding)
-
setDocumentationIfPresent
protected static void setDocumentationIfPresent(ModelObject obj, Documentation documentation)
-
-