com.sun.tools.ws.processor.modeler.wsdl
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 java.lang.Object
- implements Modeler
- Author:
- WS Development Team
Base class for WSDL->Model classes.
|
Method Summary |
protected void |
applyPortMethodCustomization(Port port,
Port wsdlPort)
|
protected void |
error(Entity entity,
java.lang.String message)
|
protected static Message |
findMessage(javax.xml.namespace.QName messageName,
WSDLDocument document)
|
protected java.util.List<java.lang.String> |
getAlternateMimeTypes(java.util.List<MIMEContent> mimeContents)
|
protected TWSDLExtension |
getAnyExtensionOfType(TWSDLExtensible extensible,
java.lang.Class type)
|
protected java.util.Set |
getDuplicateFaultNames()
|
protected static TWSDLExtension |
getExtensionOfType(TWSDLExtensible extensible,
java.lang.Class type)
|
protected java.util.List<SOAPHeader> |
getHeaderExtensions(TWSDLExtensible extensible)
|
protected Message |
getInputMessage()
|
protected java.lang.String |
getLiteralJavaMemberName(Fault fault)
|
protected java.util.List<MessagePart> |
getMessageParts(SOAPBody body,
Message message,
boolean isInput)
|
protected java.util.List<MessagePart> |
getMimeContentParts(Message message,
TWSDLExtensible ext)
|
protected java.util.List<MIMEContent> |
getMimeContents(MIMEPart part)
|
protected java.util.List<MIMEContent> |
getMimeContents(TWSDLExtensible ext,
Message message,
java.lang.String name)
|
protected java.lang.Iterable<MIMEPart> |
getMimeParts(TWSDLExtensible ext)
|
protected Message |
getOutputMessage()
|
protected static javax.xml.namespace.QName |
getQNameOf(GloballyKnown entity)
|
protected java.lang.String |
getRequestNamespaceURI(SOAPBody body)
|
protected java.lang.String |
getResponseNamespaceURI(SOAPBody body)
|
protected SOAPBody |
getSOAPRequestBody()
|
protected SOAPBody |
getSOAPResponseBody()
|
protected java.lang.String |
getUniqueClassName(java.lang.String className)
|
protected java.lang.String |
getUniqueName(Operation operation,
boolean hasOverloadedOperations)
|
protected boolean |
isConflictingClassName(java.lang.String name)
|
protected boolean |
isConflictingExceptionClassName(java.lang.String name)
|
protected boolean |
isConflictingPortClassName(java.lang.String name)
|
protected boolean |
isConflictingServiceClassName(java.lang.String name)
|
protected boolean |
isConflictingStubClassName(java.lang.String name)
|
protected boolean |
isConflictingTieClassName(java.lang.String name)
|
protected boolean |
isProvider(Port wsdlPort)
|
protected boolean |
isRequestMimeMultipart()
|
protected boolean |
isResponseMimeMultipart()
|
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. |
protected java.lang.String |
makePackageQualified(java.lang.String s)
|
protected static boolean |
tokenListContains(java.lang.String tokenList,
java.lang.String target)
|
protected boolean |
validateBodyParts(BindingOperation operation)
|
protected boolean |
validateMimeParts(java.lang.Iterable<MIMEPart> mimeParts)
|
protected void |
warning(Entity entity,
java.lang.String message)
|
| 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 |
errReceiver
protected final ErrorReceiverFilter errReceiver
options
protected final WsimportOptions options
forest
protected MetadataFinder forest
OPERATION_HAS_VOID_RETURN_TYPE
protected static final java.lang.String OPERATION_HAS_VOID_RETURN_TYPE
- See Also:
- Constant Field Values
WSDL_PARAMETER_ORDER
protected static final java.lang.String WSDL_PARAMETER_ORDER
- See Also:
- Constant Field Values
WSDL_RESULT_PARAMETER
public static final java.lang.String WSDL_RESULT_PARAMETER
- See Also:
- Constant Field Values
MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
public static final java.lang.String MESSAGE_HAS_MIME_MULTIPART_RELATED_BINDING
- See Also:
- Constant Field Values
info
protected WSDLModelerBase.ProcessSOAPOperationInfo info
_javaExceptions
protected java.util.Map<java.lang.String,JavaException> _javaExceptions
_faultTypeToStructureMap
protected java.util.Map _faultTypeToStructureMap
_javaTypes
protected JavaSimpleTypeCreator _javaTypes
_bindingNameToPortMap
protected java.util.Map<javax.xml.namespace.QName,Port> _bindingNameToPortMap
useWSIBasicProfile
protected boolean useWSIBasicProfile
parser
protected WSDLParser parser
document
protected WSDLDocument document
NULL_LOCATOR
protected static final org.xml.sax.helpers.LocatorImpl NULL_LOCATOR
WSDLModelerBase
public WSDLModelerBase(WsimportOptions options,
ErrorReceiver receiver,
MetadataFinder forest)
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 java.util.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 java.util.List<MessagePart> getMimeContentParts(Message message,
TWSDLExtensible ext)
- Parameters:
message -
- Returns:
- MessageParts referenced by the mime:content
validateMimeParts
protected boolean validateMimeParts(java.lang.Iterable<MIMEPart> mimeParts)
- Parameters:
mimeParts -
getAlternateMimeTypes
protected java.util.List<java.lang.String> getAlternateMimeTypes(java.util.List<MIMEContent> mimeContents)
getMimeParts
protected java.lang.Iterable<MIMEPart> getMimeParts(TWSDLExtensible ext)
getMimeContents
protected java.util.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.
getRequestNamespaceURI
protected java.lang.String getRequestNamespaceURI(SOAPBody body)
getResponseNamespaceURI
protected java.lang.String getResponseNamespaceURI(SOAPBody body)
getHeaderExtensions
protected java.util.List<SOAPHeader> getHeaderExtensions(TWSDLExtensible extensible)
- Returns:
- List of SOAPHeader extensions
getDuplicateFaultNames
protected java.util.Set getDuplicateFaultNames()
validateBodyParts
protected boolean validateBodyParts(BindingOperation operation)
- Parameters:
operation -
- Returns:
- true if operation has valid body parts
getLiteralJavaMemberName
protected java.lang.String getLiteralJavaMemberName(Fault fault)
getMimeContents
protected java.util.List<MIMEContent> getMimeContents(TWSDLExtensible ext,
Message message,
java.lang.String name)
- Parameters:
ext - message - name -
- Returns:
- List of MimeContents from ext
makePackageQualified
protected java.lang.String makePackageQualified(java.lang.String s)
getUniqueName
protected java.lang.String getUniqueName(Operation operation,
boolean hasOverloadedOperations)
getQNameOf
protected static javax.xml.namespace.QName getQNameOf(GloballyKnown entity)
getExtensionOfType
protected static TWSDLExtension getExtensionOfType(TWSDLExtensible extensible,
java.lang.Class type)
getAnyExtensionOfType
protected TWSDLExtension getAnyExtensionOfType(TWSDLExtensible extensible,
java.lang.Class type)
findMessage
protected static Message findMessage(javax.xml.namespace.QName messageName,
WSDLDocument document)
tokenListContains
protected static boolean tokenListContains(java.lang.String tokenList,
java.lang.String target)
getUniqueClassName
protected java.lang.String getUniqueClassName(java.lang.String className)
isConflictingClassName
protected boolean isConflictingClassName(java.lang.String name)
isConflictingServiceClassName
protected boolean isConflictingServiceClassName(java.lang.String name)
isConflictingStubClassName
protected boolean isConflictingStubClassName(java.lang.String name)
isConflictingTieClassName
protected boolean isConflictingTieClassName(java.lang.String name)
isConflictingPortClassName
protected boolean isConflictingPortClassName(java.lang.String name)
isConflictingExceptionClassName
protected boolean isConflictingExceptionClassName(java.lang.String name)
warning
protected void warning(Entity entity,
java.lang.String message)
error
protected void error(Entity entity,
java.lang.String message)
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.