Class WSDLModelerBase
- java.lang.Object
-
- com.sun.tools.ws.processor.modeler.wsdl.WSDLModelerBase
-
- All Implemented Interfaces:
Modeler
- Direct Known Subclasses:
WSDLModeler
public abstract class WSDLModelerBase extends Object implements Modeler
- Author:
- WS Development Team Base class for WSDL->Model classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWSDLModelerBase.ProcessSOAPOperationInfo
-
Field Summary
Fields Modifier and Type Field Description protected Map<QName,Port>_bindingNameToPortMapprotected Map_faultTypeToStructureMapprotected Map<String,JavaException>_javaExceptionsprotected WSDLDocumentdocumentprotected ErrorReceiverFiltererrReceiverprotected MetadataFinderforestprotected WSDLModelerBase.ProcessSOAPOperationInfoinfostatic StringMESSAGE_HAS_MIME_MULTIPART_RELATED_BINDINGprotected static LocatorImplNULL_LOCATORprotected static StringOPERATION_HAS_VOID_RETURN_TYPEprotected WsimportOptionsoptionsprotected WSDLParserparserprotected static StringWSDL_PARAMETER_ORDERstatic StringWSDL_RESULT_PARAMETER
-
Constructor Summary
Constructors Constructor Description WSDLModelerBase(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.tools.ws.processor.modeler.Modeler
buildModel
-
-
-
-
Field Detail
-
errReceiver
protected final ErrorReceiverFilter errReceiver
-
options
protected final WsimportOptions options
-
forest
protected MetadataFinder forest
-
OPERATION_HAS_VOID_RETURN_TYPE
protected static final String OPERATION_HAS_VOID_RETURN_TYPE
- See Also:
- Constant Field Values
-
WSDL_PARAMETER_ORDER
protected static final String WSDL_PARAMETER_ORDER
- See Also:
- Constant Field Values
-
WSDL_RESULT_PARAMETER
public static final String WSDL_RESULT_PARAMETER
- See Also:
- Constant Field Values
-
MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
public static final String MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
- See Also:
- Constant Field Values
-
info
protected WSDLModelerBase.ProcessSOAPOperationInfo info
-
_javaExceptions
protected Map<String,JavaException> _javaExceptions
-
_faultTypeToStructureMap
protected Map _faultTypeToStructureMap
-
parser
protected WSDLParser parser
-
document
protected WSDLDocument document
-
NULL_LOCATOR
protected static final LocatorImpl NULL_LOCATOR
-
-
Constructor Detail
-
WSDLModelerBase
public WSDLModelerBase(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest)
-
-
Method Detail
-
applyPortMethodCustomization
protected void applyPortMethodCustomization(Port port, Port wsdlPort)
- Parameters:
port-wsdlPort-
-
isProvider
protected boolean isProvider(Port wsdlPort)
-
getSOAPRequestBody
protected SOAPBody getSOAPRequestBody()
-
isRequestMimeMultipart
protected boolean isRequestMimeMultipart()
-
isResponseMimeMultipart
protected boolean isResponseMimeMultipart()
-
getSOAPResponseBody
protected SOAPBody getSOAPResponseBody()
-
getOutputMessage
protected Message getOutputMessage()
-
getInputMessage
protected Message getInputMessage()
-
getMessageParts
protected List<MessagePart> getMessageParts(SOAPBody body, Message message, boolean isInput)
- Parameters:
body- request or response body, represents soap:bodymessage- Input or output message, equivalent to wsdl:message- Returns:
- iterator over MessagePart
-
getMimeContentParts
protected List<MessagePart> getMimeContentParts(Message message, TWSDLExtensible ext)
- Parameters:
message-- Returns:
- MessageParts referenced by the mime:content
-
validateMimeParts
protected boolean validateMimeParts(Iterable<MIMEPart> mimeParts)
- Parameters:
mimeParts-
-
getAlternateMimeTypes
protected List<String> getAlternateMimeTypes(List<MIMEContent> mimeContents)
-
getMimeParts
protected Iterable<MIMEPart> getMimeParts(TWSDLExtensible ext)
-
getMimeContents
protected List<MIMEContent> getMimeContents(MIMEPart part)
-
isStyleAndPartMatch
protected boolean isStyleAndPartMatch(SOAPOperation soapOperation, MessagePart part)
For Document/Lit the wsdl:part should only have element attribute and for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute inside wsdl:message.
-
getHeaderExtensions
protected List<SOAPHeader> getHeaderExtensions(TWSDLExtensible extensible)
- Returns:
- List of SOAPHeader extensions
-
getDuplicateFaultNames
protected Set getDuplicateFaultNames()
-
validateBodyParts
protected boolean validateBodyParts(BindingOperation operation)
- Parameters:
operation-- Returns:
- true if operation has valid body parts
-
getMimeContents
protected List<MIMEContent> getMimeContents(TWSDLExtensible ext, Message message, String name)
- Parameters:
ext-message-name-- Returns:
- List of MimeContents from ext
-
getQNameOf
protected static QName getQNameOf(GloballyKnown entity)
-
getExtensionOfType
protected static TWSDLExtension getExtensionOfType(TWSDLExtensible extensible, Class type)
-
getAnyExtensionOfType
protected TWSDLExtension getAnyExtensionOfType(TWSDLExtensible extensible, Class type)
-
findMessage
protected static Message findMessage(QName messageName, WSDLDocument document)
-
isConflictingClassName
protected boolean isConflictingClassName(String name)
-
isConflictingServiceClassName
protected boolean isConflictingServiceClassName(String name)
-
isConflictingStubClassName
protected boolean isConflictingStubClassName(String name)
-
isConflictingTieClassName
protected boolean isConflictingTieClassName(String name)
-
isConflictingPortClassName
protected boolean isConflictingPortClassName(String name)
-
isConflictingExceptionClassName
protected boolean isConflictingExceptionClassName(String name)
-
-