Class EndpointDescriptionImpl
java.lang.Object
org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl
- All Implemented Interfaces:
EndpointDescription,EndpointDescriptionJava,EndpointDescriptionWSDL
public class EndpointDescriptionImpl
extends Object
implements EndpointDescription, EndpointDescriptionJava, EndpointDescriptionWSDL
-
Field Summary
FieldsFields inherited from interface org.apache.axis2.jaxws.description.EndpointDescription
AXIS_SERVICE_PARAMETER, DEFAULT_CLIENT_BINDING_ID, HANDLER_PARAMETER_QNAMESFields inherited from interface org.apache.axis2.jaxws.description.EndpointDescriptionWSDL
HTTP_WSDL_BINDING, SOAP_11_ADDRESS_ELEMENT, SOAP_12_ADDRESS_ELEMENT, SOAP11_WSDL_BINDING, SOAP12_WSDL_BINDING -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRequiredBinding(WSDLValidatorElement element) Adds the QName to a list of binding types that are required to be supported by the endpoint as defined in the WSDL.jakarta.xml.ws.BindingTypegetAnnoFeature(String id) jakarta.jws.HandlerChaingetAnnoHandlerChainAnnotation(Object sparseCompositeKey) jakarta.xml.ws.ServiceModejakarta.xml.ws.Service.Modejakarta.jws.WebServicejakarta.xml.ws.WebServiceProviderorg.apache.axis2.description.AxisServiceReturns the binding type FOR A SERVER.Return the binding type FOR A CLIENT.Return the DescriptionBuilderComposite, if any, used to build this service description.Return the handler chain configuration information as a HandlerChainsType object.getHandlerChain(Object sparseCompositeKey) Returns a schema derived java class containing the the handler configuration information.intIf MTOM is enabled, returns the threshold value.getName()jakarta.xml.ws.handler.PortInfoReturns the JAX-WS handler PortInfo object for this endpoint.getProperty(String key) Return the Object that corresponds to the property key supplied.Returns a list of all known bindings that should be supported based on the information in the WSDL.org.apache.axis2.client.ServiceClientjakarta.xml.ws.Service.Modejavax.wsdl.BindingReturns the namespace for the specific wsdl:binding extensibility element.javax.wsdl.Definitionjavax.wsdl.Portjavax.wsdl.ServiceReturn the SOAP Address from the WSDL for this port.booleanbooleanSignals whether or not MTOM has been turned on for the endpoint based on the annotation configuration.booleanbooleanIs the WSDL definition fully specified for the endpoint (WSDL 1.1 port) represented by this EndpointDescription.booleanReturns true if the contents of the<wsdl:binding>must be strictly respected by the runtime.voidsetClientBindingID(String clientBindingID) Set the binding type FOR A CLIENT.voidsetEndpointAddress(String endpointAddress) voidsetHandlerChain(HandlerChainsType handlerChain) voidsetProperty(String key, Object value) Store the property by the key specified.voidsetRespectBinding(boolean r) Indicate whether or not strict binding support should be used.toString()
-
Field Details
-
ServiceMode_DEFAULT
public static final jakarta.xml.ws.Service.Mode ServiceMode_DEFAULT -
BindingType_DEFAULT
- See Also:
-
-
Method Details
-
getPortQName
- Specified by:
getPortQNamein interfaceEndpointDescription
-
getServiceQName
- Specified by:
getServiceQNamein interfaceEndpointDescription
-
getServiceDescription
- Specified by:
getServiceDescriptionin interfaceEndpointDescription
-
getServiceDescriptionImpl
-
getEndpointInterfaceDescription
- Specified by:
getEndpointInterfaceDescriptionin interfaceEndpointDescription
-
getAxisService
public org.apache.axis2.description.AxisService getAxisService()- Specified by:
getAxisServicein interfaceEndpointDescription
-
getServiceClient
public org.apache.axis2.client.ServiceClient getServiceClient()- Specified by:
getServiceClientin interfaceEndpointDescription
-
isWSDLFullySpecified
public boolean isWSDLFullySpecified()Description copied from interface:EndpointDescriptionWSDLIs the WSDL definition fully specified for the endpoint (WSDL 1.1 port) represented by this EndpointDescription. If the WSDL is Partial, that means the Endpoint could not be created with the infomation contained in the WSDL file, and annotations were used.- Specified by:
isWSDLFullySpecifiedin interfaceEndpointDescriptionWSDL- Returns:
- true if the WSDL was fully specified; false if it was partial WSDL
-
isProviderBased
public boolean isProviderBased()- Specified by:
isProviderBasedin interfaceEndpointDescription
-
isEndpointBased
public boolean isEndpointBased()- Specified by:
isEndpointBasedin interfaceEndpointDescription
-
getAnnoWebServiceWSDLLocation
- Specified by:
getAnnoWebServiceWSDLLocationin interfaceEndpointDescriptionJava
-
getAnnoWebServiceServiceName
- Specified by:
getAnnoWebServiceServiceNamein interfaceEndpointDescriptionJava
-
getAnnoWebServicePortName
- Specified by:
getAnnoWebServicePortNamein interfaceEndpointDescriptionJava
-
getAnnoWebServiceTargetNamespace
- Specified by:
getAnnoWebServiceTargetNamespacein interfaceEndpointDescriptionJava
-
getAnnoWebServiceProvider
public jakarta.xml.ws.WebServiceProvider getAnnoWebServiceProvider()- Specified by:
getAnnoWebServiceProviderin interfaceEndpointDescriptionJava
-
getAnnoWebService
public jakarta.jws.WebService getAnnoWebService()- Specified by:
getAnnoWebServicein interfaceEndpointDescriptionJava
-
getAnnoWebServiceEndpointInterface
- Specified by:
getAnnoWebServiceEndpointInterfacein interfaceEndpointDescriptionJava
-
getAnnoWebServiceName
- Specified by:
getAnnoWebServiceNamein interfaceEndpointDescriptionJava
-
getAnnoServiceMode
public jakarta.xml.ws.ServiceMode getAnnoServiceMode()- Specified by:
getAnnoServiceModein interfaceEndpointDescriptionJava
-
getServiceMode
public jakarta.xml.ws.Service.Mode getServiceMode()- Specified by:
getServiceModein interfaceEndpointDescription
-
getAnnoServiceModeValue
public jakarta.xml.ws.Service.Mode getAnnoServiceModeValue()- Specified by:
getAnnoServiceModeValuein interfaceEndpointDescriptionJava
-
getAnnoBindingType
public jakarta.xml.ws.BindingType getAnnoBindingType()- Specified by:
getAnnoBindingTypein interfaceEndpointDescriptionJava
-
getBindingType
Description copied from interface:EndpointDescriptionReturns the binding type FOR A SERVER. This is based on the BindingType annotation and/or the WSDL. This will return the default binding (SOAP11) if no annotation was specified on the server. This should NOT be called on the client since it will always return the default binding. Use getClientBindingID() on clients.- Specified by:
getBindingTypein interfaceEndpointDescription- Returns:
-
getAnnoBindingTypeValue
- Specified by:
getAnnoBindingTypeValuein interfaceEndpointDescriptionJava
-
setHandlerChain
- Specified by:
setHandlerChainin interfaceEndpointDescription
-
getHandlerChain
Description copied from interface:EndpointDescriptionReturn the handler chain configuration information as a HandlerChainsType object. This is the same as calling getHandlerChain(null).- Specified by:
getHandlerChainin interfaceEndpointDescription- See Also:
-
getHandlerChain
Returns a schema derived java class containing the the handler configuration information. That information, returned in the HandlerChainsType object, is looked for in the following places in this order: - Set on the sparseComposite for the given key - Set on the composite - Read in from the file specified on HandlerChain annotation- Specified by:
getHandlerChainin interfaceEndpointDescription- Parameters:
sparseCompositeKey- May be null. If non-null, used to look for service-delegate specific sparse composite information.- Returns:
- HandlerChainsType This is the top-level element for the Handler configuration file
-
getAnnoHandlerChainAnnotation
-
isMTOMEnabled
public boolean isMTOMEnabled()Description copied from interface:EndpointDescriptionSignals whether or not MTOM has been turned on for the endpoint based on the annotation configuration. Both the @MTOM and @BindingType are inspected. The @MTOM annotation is inspected first. If the @MTOM annotation is not present, then the @BindingType is inspected.- Specified by:
isMTOMEnabledin interfaceEndpointDescription- Returns:
- a boolean value
-
respectBinding
public boolean respectBinding()Description copied from interface:EndpointDescriptionReturns true if the contents of the<wsdl:binding>must be strictly respected by the runtime.- Specified by:
respectBindingin interfaceEndpointDescription- Returns:
- a boolean value
-
setRespectBinding
public void setRespectBinding(boolean r) Description copied from interface:EndpointDescriptionIndicate whether or not strict binding support should be used.- Specified by:
setRespectBindingin interfaceEndpointDescription
-
addRequiredBinding
Description copied from interface:EndpointDescriptionAdds the QName to a list of binding types that are required to be supported by the endpoint as defined in the WSDL.- Specified by:
addRequiredBindingin interfaceEndpointDescription- Returns:
-
getRequiredBindings
Description copied from interface:EndpointDescriptionReturns a list of all known bindings that should be supported based on the information in the WSDL.- Specified by:
getRequiredBindingsin interfaceEndpointDescription- Returns:
-
getMTOMThreshold
public int getMTOMThreshold()Description copied from interface:EndpointDescriptionIf MTOM is enabled, returns the threshold value.- Specified by:
getMTOMThresholdin interfaceEndpointDescription- Returns:
- -1 if MTOM is not enabled, a positive integer value if one was configured.
-
getAnnoFeature
- Specified by:
getAnnoFeaturein interfaceEndpointDescriptionJava
-
getWSDLDefinition
public javax.wsdl.Definition getWSDLDefinition()- Specified by:
getWSDLDefinitionin interfaceEndpointDescriptionWSDL
-
getWSDLService
public javax.wsdl.Service getWSDLService()- Specified by:
getWSDLServicein interfaceEndpointDescriptionWSDL
-
getWSDLPort
public javax.wsdl.Port getWSDLPort()- Specified by:
getWSDLPortin interfaceEndpointDescriptionWSDL
-
getWSDLBinding
public javax.wsdl.Binding getWSDLBinding()- Specified by:
getWSDLBindingin interfaceEndpointDescriptionWSDL
-
getWSDLBindingType
Description copied from interface:EndpointDescriptionWSDLReturns the namespace for the specific wsdl:binding extensibility element. Typically, this is the <soap:binding> element that defines either a SOAP 1.1 or a SOAP 1.2 binding. IMPORTANT NOTE: The value returned is converted from the WSDL Binding type (which is the namespace on the assocaited binding extensibility element) to the corresponding value for the SOAPBinding annotation. For example, the following SOAP12 WSDL ... xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" ... <wsdl:binding ...> <soap12:binding ...> Would return the value jakarta.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING which is "http://www.w3.org/2003/05/soap/bindings/HTTP/"- Specified by:
getWSDLBindingTypein interfaceEndpointDescriptionWSDL- Returns:
- String constants defined in jakarta.xml.ws.soap.SOAPBinding
-
getName
- Specified by:
getNamein interfaceEndpointDescription
-
getTargetNamespace
- Specified by:
getTargetNamespacein interfaceEndpointDescription
-
getPortInfo
public jakarta.xml.ws.handler.PortInfo getPortInfo()Description copied from interface:EndpointDescriptionReturns the JAX-WS handler PortInfo object for this endpoint.- Specified by:
getPortInfoin interfaceEndpointDescription- Returns:
- PortInfo
-
setClientBindingID
Description copied from interface:EndpointDescriptionSet the binding type FOR A CLIENT. The BindingType annotation is not valid on the client per the JAX-WS spec. The value can be set via addPort(...) for a Dispatch client or via TBD for a Proxy client.- Specified by:
setClientBindingIDin interfaceEndpointDescription
-
getClientBindingID
Description copied from interface:EndpointDescriptionReturn the binding type FOR A CLIENT. This will return the default client binding type if called on the server. Use getBindingType() on servers.- Specified by:
getClientBindingIDin interfaceEndpointDescription- Returns:
- String representing the client binding type
-
setEndpointAddress
- Specified by:
setEndpointAddressin interfaceEndpointDescription
-
getEndpointAddress
- Specified by:
getEndpointAddressin interfaceEndpointDescription
-
setProperty
Description copied from interface:EndpointDescriptionStore the property by the key specified.- Specified by:
setPropertyin interfaceEndpointDescription
-
getProperty
Description copied from interface:EndpointDescriptionReturn the Object that corresponds to the property key supplied.- Specified by:
getPropertyin interfaceEndpointDescription
-
getWSDLSOAPAddress
Return the SOAP Address from the WSDL for this port.- Specified by:
getWSDLSOAPAddressin interfaceEndpointDescriptionWSDL- Returns:
- The SOAP Address from the WSDL for this port or null.
-
getDescriptionBuilderComposite
Description copied from interface:EndpointDescriptionReturn the DescriptionBuilderComposite, if any, used to build this service description.- Specified by:
getDescriptionBuilderCompositein interfaceEndpointDescription- Returns:
-
toString
-