Package com.sun.xml.ws.model
Class AbstractSEIModelImpl
- java.lang.Object
-
- 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- Author:
- JAXWS Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected BindingContextbindingContextprotected ClassLoaderclassLoaderprotected ClasscontractClassprotected BindingInfodatabindingInfoprotected StringdefaultSchemaNamespaceSuffixprotected QNameemptyBodyNameprotected ClassendpointClassprotected org.glassfish.jaxb.runtime.api.JAXBRIContextjaxbContextDeprecated.protected WSBindingwsBinding
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSEIModelImpl(WebServiceFeatureList features)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAdditionalClasses(Class... additionalClasses)Adds additional classes obtained fromXmlSeeAlsoannotation.BindingInfodatabindingInfo()voidfreeze(WSDLPort port)BindingContextgetBindingContext()QNamegetBoundPortTypeName()Gives the wsdl:binding@name valueorg.glassfish.jaxb.runtime.api.BridgegetBridge(org.glassfish.jaxb.runtime.api.TypeReference type)Deprecated.use getBondClassgetContractClass()DatabindinggetDatabinding()ClassgetEndpointClass()JavaMethodImplgetJavaMethod(Method method)This method will be useful to get theJavaMethodcorrrespondiong to aMethod- such as on the client side.JavaMethodImplgetJavaMethod(QName name)Gives aJavaMethodfor a givenQName.JavaMethodgetJavaMethodForWsdlOperation(QName operationName)Gives the JavaMethod associated with the wsdl operationCollection<JavaMethodImpl>getJavaMethods()Gives all theJavaMethodfor a wsdl:port for which thisSEIModelis created.jakarta.xml.bind.JAXBContextgetJAXBContext()Deprecated.List<String>getKnownNamespaceURIs()Pool.MarshallergetMarshallerPool()WSDLPortgetPort()Gets theWSDLPortthat represents the port that this SEI binds to.QNamegetPortName()Value of the wsdl:port name associated with theSEIModelQNamegetPortTypeName()Value of wsdl:portType bound to the port associated with theSEIModelQNamegetQNameForJM(JavaMethodImpl jm)Deprecated.QNamegetServiceQName()wsdl:service qualified name for the port associated with theSEIModelStringgetTargetNamespace()This is the targetNamespace for the WSDL containing the PortType definitionWSBindinggetWSBinding()StringgetWSDLLocation()Location of the WSDL that defines the port associated with theSEIModelXMLBridgegetXMLBridge(TypeInfo type)booleanisCheckedException(Method m, Class ex)booleanisKnownFault(QName name, Method method)protected abstract voidpopulateMaps()Populate methodToJM and nameToJM maps.voidsetDatabinding(Databinding wsRuntime)
-
-
-
Field Detail
-
jaxbContext
protected org.glassfish.jaxb.runtime.api.JAXBRIContext jaxbContext
Deprecated.
-
bindingContext
protected BindingContext bindingContext
-
emptyBodyName
protected final QName emptyBodyName
-
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
-
databindingInfo
public BindingInfo databindingInfo()
-
freeze
public void freeze(WSDLPort port)
-
populateMaps
protected abstract void populateMaps()
Populate methodToJM and nameToJM maps.
-
getMarshallerPool
public Pool.Marshaller getMarshallerPool()
- Specified by:
getMarshallerPoolin interfaceSEIModel
-
getJAXBContext
public jakarta.xml.bind.JAXBContext getJAXBContext()
Deprecated.Description copied from interface:SEIModelJAXBContext that will be used to marshall/unmarshall the java classes found in the SEI.- Specified by:
getJAXBContextin interfaceSEIModel- Returns:
- the
JAXBRIContext
-
getBindingContext
public BindingContext getBindingContext()
-
getKnownNamespaceURIs
public List<String> getKnownNamespaceURIs()
- Returns:
- the known namespaces from JAXBRIContext
-
getBridge
public final org.glassfish.jaxb.runtime.api.Bridge getBridge(org.glassfish.jaxb.runtime.api.TypeReference type)
Deprecated.use getBond- Returns:
- the
Bridgefor thetype
-
isKnownFault
public boolean isKnownFault(QName name, Method method)
- Returns:
- true if
nameis the name of a known fault name for theMethod method
-
isCheckedException
public boolean isCheckedException(Method m, Class ex)
- Returns:
- true if
exis a Checked Exception forMethod m
-
getJavaMethod
public JavaMethodImpl getJavaMethod(Method method)
Description copied from interface:SEIModelThis method will be useful to get theJavaMethodcorrrespondiong to aMethod- such as on the client side.- Specified by:
getJavaMethodin interfaceSEIModel- Parameters:
method- for whichJavaMethodis asked for- Returns:
- the
JavaMethodrepresenting themethod
-
getJavaMethod
public JavaMethodImpl getJavaMethod(QName name)
Description copied from interface:SEIModelGives aJavaMethodfor a givenQName. TheQNamewill 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:
getJavaMethodin interfaceSEIModel- Returns:
- the
JavaMethodassociated with the operation named name
-
getJavaMethodForWsdlOperation
public JavaMethod getJavaMethodForWsdlOperation(QName operationName)
Description copied from interface:SEIModelGives the JavaMethod associated with the wsdl operation- Specified by:
getJavaMethodForWsdlOperationin interfaceSEIModel- Parameters:
operationName- QName of the wsdl operation- Returns:
-
getQNameForJM
public QName getQNameForJM(JavaMethodImpl jm)
Deprecated.- Returns:
- the
QNameassociated with the JavaMethod jm.
-
getJavaMethods
public final Collection<JavaMethodImpl> getJavaMethods()
Description copied from interface:SEIModelGives all theJavaMethodfor a wsdl:port for which thisSEIModelis created.- Specified by:
getJavaMethodsin interfaceSEIModel- Returns:
- a
CollectionofJavaMethodsassociated with thisRuntimeModel
-
getWSDLLocation
public String getWSDLLocation()
Description copied from interface:SEIModelLocation of the WSDL that defines the port associated with theSEIModel- Specified by:
getWSDLLocationin interfaceSEIModel- Returns:
- wsdl location uri - always non-null
-
getServiceQName
public QName getServiceQName()
Description copied from interface:SEIModelwsdl:service qualified name for the port associated with theSEIModel- Specified by:
getServiceQNamein interfaceSEIModel- Returns:
- wsdl:service@name value - always non-null
-
getPort
public WSDLPort getPort()
Description copied from interface:SEIModelGets theWSDLPortthat represents the port that this SEI binds to.
-
getPortName
public QName getPortName()
Description copied from interface:SEIModelValue of the wsdl:port name associated with theSEIModel- Specified by:
getPortNamein interfaceSEIModel- Returns:
- wsdl:service/wsdl:port@name value, always non-null
-
getPortTypeName
public QName getPortTypeName()
Description copied from interface:SEIModelValue of wsdl:portType bound to the port associated with theSEIModel- Specified by:
getPortTypeNamein interfaceSEIModel- Returns:
-
getTargetNamespace
public String getTargetNamespace()
This is the targetNamespace for the WSDL containing the PortType definition- Specified by:
getTargetNamespacein interfaceSEIModel
-
getBoundPortTypeName
@NotNull public QName getBoundPortTypeName()
Description copied from interface:SEIModelGives the wsdl:binding@name value- Specified by:
getBoundPortTypeNamein interfaceSEIModel
-
addAdditionalClasses
public void addAdditionalClasses(Class... additionalClasses)
Adds additional classes obtained fromXmlSeeAlsoannotation. 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()
-
-