com.sun.xml.ws.model
Class AbstractSEIModelImpl

java.lang.Object
  extended by com.sun.xml.ws.model.AbstractSEIModelImpl
All Implemented Interfaces:
SEIModel
Direct Known Subclasses:
SOAPSEIModel

public abstract class AbstractSEIModelImpl
extends Object
implements SEIModel

model of the web service. Used by the runtime marshall/unmarshall web service invocations


Field Summary
protected  BindingContext bindingContext
           
(package private)  BindingID bindingId
           
protected  ClassLoader classLoader
           
protected  Class contractClass
           
protected  BindingInfo databindingInfo
           
protected  String defaultSchemaNamespaceSuffix
           
protected  QName emptyBodyName
           
protected  Class endpointClass
           
protected  com.sun.xml.bind.api.JAXBRIContext jaxbContext
          Deprecated.  
protected  WSBinding wsBinding
           
 
Constructor Summary
protected AbstractSEIModelImpl(WebServiceFeatureList features)
           
 
Method Summary
 void addAdditionalClasses(Class... additionalClasses)
          Adds additional classes obtained from XmlSeeAlso annotation.
(package private)  void addJavaMethod(JavaMethodImpl jm)
           
 void freeze(WSDLPort port)
          Link SEIModel to WSDLModel.
 BindingContext getBindingContext()
           
 QName getBoundPortTypeName()
          Gives the wsdl:binding@name value
 com.sun.xml.bind.api.Bridge getBridge(com.sun.xml.bind.api.TypeReference type)
          Deprecated. use getBond
 Class getContractClass()
           
 Databinding getDatabinding()
           
(package private)  String getDefaultSchemaNamespace()
           
 Class getEndpointClass()
           
 JavaMethodImpl getJavaMethod(Method method)
          This method will be useful to get the JavaMethod corrrespondiong to a Method - such as on the client side.
 JavaMethodImpl getJavaMethod(QName name)
          Gives a JavaMethod for a given QName.
 JavaMethod getJavaMethodForWsdlOperation(QName operationName)
          Gives the JavaMethod associated with the wsdl operation
 Collection<JavaMethodImpl> getJavaMethods()
          Gives all the JavaMethod for a wsdl:port for which this SEIModel is created.
 JAXBContext getJAXBContext()
          Deprecated.  
 List<String> getKnownNamespaceURIs()
           
 Pool.Marshaller getMarshallerPool()
           
 WSDLPort getPort()
          Gets the WSDLPort that represents the port that this SEI binds to.
 QName getPortName()
          Value of the wsdl:port name associated with the {@link SEIModel)
 QName getPortTypeName()
          Value of wsdl:portType bound to the port associated with the {@link SEIModel)
 QName getQNameForJM(JavaMethodImpl jm)
          Deprecated. Use JavaMethod.getOperationName().
 QName getServiceQName()
          wsdl:service qualified name for the port associated with the {@link SEIModel)
 String getTargetNamespace()
          This is the targetNamespace for the WSDL containing the PortType definition
 WSBinding getWSBinding()
           
 String getWSDLLocation()
          Location of the WSDL that defines the port associated with the SEIModel
 XMLBridge getXMLBridge(TypeInfo type)
           
 boolean isCheckedException(Method m, Class ex)
           
 boolean isKnownFault(QName name, Method method)
           
protected abstract  void populateMaps()
          Populate methodToJM and nameToJM maps.
(package private)  void postProcess()
           
(package private)  void put(Method method, JavaMethodImpl jm)
           
(package private)  void put(QName name, JavaMethodImpl jm)
           
(package private)  void putOp(QName opName, JavaMethodImpl jm)
           
 void setDatabinding(Databinding wsRuntime)
           
(package private)  void setPortName(QName name)
           
(package private)  void setPortTypeName(QName name)
           
(package private)  void setServiceQName(QName name)
           
(package private)  void setTargetNamespace(String namespace)
          This is the targetNamespace for the WSDL containing the PortType definition
(package private)  void setWSDLLocation(String location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jaxbContext

protected com.sun.xml.bind.api.JAXBRIContext jaxbContext
Deprecated. 

bindingContext

protected BindingContext bindingContext

emptyBodyName

protected final QName emptyBodyName

bindingId

BindingID bindingId

contractClass

protected Class contractClass

endpointClass

protected Class endpointClass

classLoader

protected ClassLoader classLoader

wsBinding

protected WSBinding wsBinding

databindingInfo

protected BindingInfo databindingInfo

defaultSchemaNamespaceSuffix

protected String defaultSchemaNamespaceSuffix
Constructor Detail

AbstractSEIModelImpl

protected AbstractSEIModelImpl(WebServiceFeatureList features)
Method Detail

postProcess

void postProcess()

freeze

public void freeze(WSDLPort port)
Link SEIModel to WSDLModel. Merge it with postProcess().


populateMaps

protected abstract void populateMaps()
Populate methodToJM and nameToJM maps.


getMarshallerPool

public Pool.Marshaller getMarshallerPool()
Specified by:
getMarshallerPool in interface SEIModel

getJAXBContext

public JAXBContext getJAXBContext()
Deprecated. 

Description copied from interface: SEIModel
JAXBContext that will be used to marshall/unmarshall the java classes found in the SEI.

Specified by:
getJAXBContext in interface SEIModel
Returns:
the JAXBRIContext

getBindingContext

public BindingContext getBindingContext()

getKnownNamespaceURIs

public List<String> getKnownNamespaceURIs()
Returns:
the known namespaces from JAXBRIContext

getBridge

public final com.sun.xml.bind.api.Bridge getBridge(com.sun.xml.bind.api.TypeReference type)
Deprecated. use getBond

Returns:
the Bridge for the type

getXMLBridge

public final XMLBridge getXMLBridge(TypeInfo type)

isKnownFault

public boolean isKnownFault(QName name,
                            Method method)
Returns:
true if name is the name of a known fault name for the Method method

isCheckedException

public boolean isCheckedException(Method m,
                                  Class ex)
Returns:
true if ex is a Checked Exception for Method m

getJavaMethod

public JavaMethodImpl getJavaMethod(Method method)
Description copied from interface: SEIModel
This method will be useful to get the JavaMethod corrrespondiong to a Method - such as on the client side.

Specified by:
getJavaMethod in interface SEIModel
Parameters:
method - for which JavaMethod is asked for
Returns:
the JavaMethod representing the method

getJavaMethod

public JavaMethodImpl getJavaMethod(QName name)
Description copied from interface: SEIModel
Gives a JavaMethod for a given QName. The QName will be equivalent to the SOAP Body or Header block or can simply be the name of an infoset that corresponds to the payload.

Specified by:
getJavaMethod in interface SEIModel
Returns:
the JavaMethod associated with the operation named name

getJavaMethodForWsdlOperation

public JavaMethod getJavaMethodForWsdlOperation(QName operationName)
Description copied from interface: SEIModel
Gives the JavaMethod associated with the wsdl operation

Specified by:
getJavaMethodForWsdlOperation in interface SEIModel
Parameters:
operationName - QName of the wsdl operation
Returns:

getQNameForJM

public QName getQNameForJM(JavaMethodImpl jm)
Deprecated. Use JavaMethod.getOperationName().

Returns:
the QName associated with the JavaMethod jm.

getJavaMethods

public final Collection<JavaMethodImpl> getJavaMethods()
Description copied from interface: SEIModel
Gives all the JavaMethod for a wsdl:port for which this SEIModel is created.

Specified by:
getJavaMethods in interface SEIModel
Returns:
a Collection of JavaMethods associated with this RuntimeModel

addJavaMethod

void addJavaMethod(JavaMethodImpl jm)

put

void put(QName name,
         JavaMethodImpl jm)

put

void put(Method method,
         JavaMethodImpl jm)

putOp

void putOp(QName opName,
           JavaMethodImpl jm)

getWSDLLocation

public String getWSDLLocation()
Description copied from interface: SEIModel
Location of the WSDL that defines the port associated with the SEIModel

Specified by:
getWSDLLocation in interface SEIModel
Returns:
wsdl location uri - always non-null

setWSDLLocation

void setWSDLLocation(String location)

getServiceQName

public QName getServiceQName()
Description copied from interface: SEIModel
wsdl:service qualified name for the port associated with the {@link SEIModel)

Specified by:
getServiceQName in interface SEIModel
Returns:
wsdl:service@name value - always non-null

getPort

public WSDLPort getPort()
Description copied from interface: SEIModel
Gets the WSDLPort that represents the port that this SEI binds to.

Specified by:
getPort in interface SEIModel

getPortName

public QName getPortName()
Description copied from interface: SEIModel
Value of the wsdl:port name associated with the {@link SEIModel)

Specified by:
getPortName in interface SEIModel
Returns:
wsdl:service/wsdl:port@name value, always non-null

getPortTypeName

public QName getPortTypeName()
Description copied from interface: SEIModel
Value of wsdl:portType bound to the port associated with the {@link SEIModel)

Specified by:
getPortTypeName in interface SEIModel
Returns:

setServiceQName

void setServiceQName(QName name)

setPortName

void setPortName(QName name)

setPortTypeName

void setPortTypeName(QName name)

setTargetNamespace

void setTargetNamespace(String namespace)
This is the targetNamespace for the WSDL containing the PortType definition


getTargetNamespace

public String getTargetNamespace()
This is the targetNamespace for the WSDL containing the PortType definition

Specified by:
getTargetNamespace in interface SEIModel

getDefaultSchemaNamespace

String getDefaultSchemaNamespace()

getBoundPortTypeName

@NotNull
public QName getBoundPortTypeName()
Description copied from interface: SEIModel
Gives the wsdl:binding@name value

Specified by:
getBoundPortTypeName in interface SEIModel

addAdditionalClasses

public void addAdditionalClasses(Class... additionalClasses)
Adds additional classes obtained from XmlSeeAlso annotation. In starting from wsdl case these classes would most likely be JAXB ObjectFactory that references other classes.


getDatabinding

public Databinding getDatabinding()

setDatabinding

public void setDatabinding(Databinding wsRuntime)

getWSBinding

public WSBinding getWSBinding()

getContractClass

public Class getContractClass()

getEndpointClass

public Class getEndpointClass()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.