Package com.sun.xml.ws.api.addressing
Enum AddressingVersion
- All Implemented Interfaces:
Serializable,Comparable<AddressingVersion>
'Traits' object that absorbs differences of WS-Addressing versions.
- Author:
- Arun Gupta
-
Nested Class Summary
Nested Classes -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal QNameRepresents the QName of the fault code when Action is not supported at this endpoint.final QNameRepresents the QName of the fault code when Action is not supported at this endpoint.final StringRepresents the text of the fault when Action is not supported at this endpoint.final QNameRepresents the Action QName in the SOAP message for a specific WS-Addressing Version.final WSEndpointReferenceRepresents the anonymous EPR.final StringGets the anonymous URI value associated with this WS-Addressing version.final AddressingVersion.EPRRepresenting eitherW3CEndpointReferenceorMemberSubmissionEndpointReference.static final QNameFault sub-sub-code that represents duplicate <Address> element in EPR.final QNameFault sub-sub-code that represents "Specifies that the invalid header was expected to be an EPR but did not contain an [address]."final QNameRepresents the QName of the header element that is used to capture the fault detail if there is a fault processing WS-Addressing Message Addressing Property.final QNameRepresents the FaultTo QName for a specific WS-Addressing Version.final QNameRepresents the From QName in the SOAP message for a specific WS-Addressing Version.final QNameRepresents the QName of the fault code when a header representing an address is not valid.final QNameRepresents the QName of the fault code when a header representing a WS-Addressing Message Addressing Property occurs greater than expected number.final QNameRepresents the QName of the fault code when a header representing a WS-Addressing Message Addressing Property is invalid and cannot be processed.final QNameRepresents the QName of the reference parameter in a SOAP message.final QNameRepresents the QName of the fault code when a required header representing a WS-Addressing Message Addressing Property is not present.final QNameRepresents the MessageID QName in the SOAP message for a specific WS-Addressing Version.final StringGets the none URI value associated with this WS-Addressing version.final StringNamespace URIfinal StringNamespace URI for the WSDL Bindingfinal QNameRepresents the QName of the element that conveys additional information if Action is not matching with that expected.final QNameRepresents the QName of the element that conveys additional information on the pre-defined WS-Addressing faults.final QNameRepresents the RelatesTo QName in the SOAP message for a specific WS-Addressing Version.final QNameRepresents the ReplyTo QName in the SOAP message for a specific WS-Addressing Version.final QNameRepresents the To QName in the SOAP message for a specific WS-Addressing Version.static final Stringstatic final Stringfinal QNameRepresents the Action QName in the WSDL for a specific WS-Addressing Version.final QNameRepresents the WSDL anonymous QName for a specific WS-Addressing Version.final QNameRepresents the WSDL extension QName for a specific WS-Addressing Version.final StringNamespace URI for the WSDL Binding -
Method Summary
Modifier and TypeMethodDescriptionstatic AddressingVersionfromBinding(WSBinding binding) Gets theAddressingVersionfrom aWSBindingstatic AddressingVersionfromFeature(jakarta.xml.ws.WebServiceFeature af) static AddressingVersionReturnsAddressingVersionwhosensUriequals to the given string.static AddressingVersionGets theAddressingVersionfrom aWSDLPortstatic AddressingVersionfromSpecClass(Class<? extends jakarta.xml.ws.EndpointReference> eprClass) Gets the correspondingAddressingVersioninstance from the EPR class.final StringDeprecated.Gets the default fault Action value associated with this WS-Addressing version.static jakarta.xml.ws.WebServiceFeaturegetFeature(String nsUri, boolean enabled, boolean required) Gets theWebServiceFeaturecorresponding to the namespace URI of WS-Addressing policy assertion in the WSDL.abstract Class<? extends jakarta.xml.ws.WebServiceFeature>abstract StringGets the description text when a header representing a WS-Addressing Message Addressing Property is invalid and cannot be processed.abstract StringGets the description text when a required WS-Addressing header representing a Message Addressing Property is absent.final StringDeprecated.UsenoneUri.getNsUri()Deprecated.UsensUri.abstract Stringabstract WsaTubeHelpergetWsaHelper(WSDLPort wsdlPort, SEIModel seiModel, WSBinding binding) Deprecated.TODO why are we exposing implementation specificc class through api? TODO Remove it if no one elase uses it.abstract Stringstatic booleanReturns true ifbindingcontains either aAddressingFeatureorMemberSubmissionAddressingFeatureand is enabled.abstract booleanisReferenceParameter(String localName) Returns true if the given local name is considered as a reference parameter in EPR.static booleanisRequired(WSBinding binding) Returns true ifbindingcontains either aAddressingFeatureorMemberSubmissionAddressingFeatureand is required.static booleanisRequired(jakarta.xml.ws.WebServiceFeature wsf) Returns true if the WebServiceFeature is either aAddressingFeatureorMemberSubmissionAddressingFeatureand is required.static AddressingVersionReturns the enum constant of this type with the specified name.static AddressingVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
W3C
-
MEMBER
-
-
Field Details
-
nsUri
Namespace URI -
wsdlNsUri
Namespace URI for the WSDL Binding -
eprType
Representing eitherW3CEndpointReferenceorMemberSubmissionEndpointReference. -
policyNsUri
Namespace URI for the WSDL Binding -
anonymousUri
Gets the anonymous URI value associated with this WS-Addressing version. -
noneUri
Gets the none URI value associated with this WS-Addressing version. -
anonymousEpr
Represents the anonymous EPR. -
toTag
Represents the To QName in the SOAP message for a specific WS-Addressing Version. -
fromTag
Represents the From QName in the SOAP message for a specific WS-Addressing Version. -
replyToTag
Represents the ReplyTo QName in the SOAP message for a specific WS-Addressing Version. -
faultToTag
Represents the FaultTo QName for a specific WS-Addressing Version. -
actionTag
Represents the Action QName in the SOAP message for a specific WS-Addressing Version. -
messageIDTag
Represents the MessageID QName in the SOAP message for a specific WS-Addressing Version. -
relatesToTag
Represents the RelatesTo QName in the SOAP message for a specific WS-Addressing Version. -
mapRequiredTag
Represents the QName of the fault code when a required header representing a WS-Addressing Message Addressing Property is not present. -
actionMismatchTag
Represents the QName of the fault code when Action is not supported at this endpoint. -
actionNotSupportedTag
Represents the QName of the fault code when Action is not supported at this endpoint. -
actionNotSupportedText
Represents the text of the fault when Action is not supported at this endpoint. -
invalidMapTag
Represents the QName of the fault code when a header representing a WS-Addressing Message Addressing Property is invalid and cannot be processed. -
invalidCardinalityTag
Represents the QName of the fault code when a header representing a WS-Addressing Message Addressing Property occurs greater than expected number. -
invalidAddressTag
Represents the QName of the fault code when a header representing an address is not valid. -
problemHeaderQNameTag
Represents the QName of the element that conveys additional information on the pre-defined WS-Addressing faults. -
problemActionTag
Represents the QName of the element that conveys additional information if Action is not matching with that expected. -
faultDetailTag
Represents the QName of the header element that is used to capture the fault detail if there is a fault processing WS-Addressing Message Addressing Property. This is only used for SOAP 1.1. -
fault_missingAddressInEpr
Fault sub-sub-code that represents "Specifies that the invalid header was expected to be an EPR but did not contain an [address]." -
wsdlActionTag
Represents the Action QName in the WSDL for a specific WS-Addressing Version. -
wsdlExtensionTag
Represents the WSDL extension QName for a specific WS-Addressing Version. -
wsdlAnonymousTag
Represents the WSDL anonymous QName for a specific WS-Addressing Version. -
isReferenceParameterTag
Represents the QName of the reference parameter in a SOAP message. This is only valid for W3C WS-Addressing. -
UNSET_OUTPUT_ACTION
- See Also:
-
UNSET_INPUT_ACTION
- See Also:
-
fault_duplicateAddressInEpr
Fault sub-sub-code that represents duplicate <Address> element in EPR. This is a fault code not defined in the spec.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromNsUri
ReturnsAddressingVersionwhosensUriequals to the given string. This method does not perform input string validation.- Parameters:
nsUri- must not be null.- Returns:
- always non-null.
-
fromBinding
Gets theAddressingVersionfrom aWSBinding- Parameters:
binding- WSDL binding- Returns:
- addresing version enabled, or null if none is enabled.
-
fromPort
Gets theAddressingVersionfrom aWSDLPort- Parameters:
port- WSDL port- Returns:
- addresing version
-
getNsUri
Deprecated.UsensUri.ReturnsnsUriassociated with thisAddressingVersion- Returns:
- namespace URI
-
isReferenceParameter
Returns true if the given local name is considered as a reference parameter in EPR. For W3C, this means "ReferenceParameters", and for the member submission version, this means either "ReferenceParameters" or "ReferenceProperties". -
getWsaHelper
Deprecated.TODO why are we exposing implementation specificc class through api? TODO Remove it if no one elase uses it.Returns WsaTubeHelper for the WS-Addressing version identified bybindingWSBindingand for theWSDLPortport.- Returns:
- WS-A version specific helper
-
getNoneUri
Deprecated.UsenoneUri.Gets the none URI value associated with this WS-Addressing version.- Returns:
- none URI value
-
getAnonymousUri
Deprecated.UseanonymousUriGets the anonymous URI value associated with this WS-Addressing version. -
getDefaultFaultAction
Gets the default fault Action value associated with this WS-Addressing version.- Returns:
- default fault Action value
-
getMapRequiredText
Gets the description text when a required WS-Addressing header representing a Message Addressing Property is absent.- Returns:
- description text
-
getInvalidMapText
Gets the description text when a header representing a WS-Addressing Message Addressing Property is invalid and cannot be processed.- Returns:
- description text
-
getPrefix
-
getWsdlPrefix
-
getFeatureClass
-
fromFeature
-
getFeature
@NotNull public static jakarta.xml.ws.WebServiceFeature getFeature(String nsUri, boolean enabled, boolean required) Gets theWebServiceFeaturecorresponding to the namespace URI of WS-Addressing policy assertion in the WSDL.enabledandrequiredare used to initialize the value of the feature.- Parameters:
nsUri- namespace URI of the WS-Addressing policy assertion in the WSDLenabled- true if feature is to be enabled, false otherwiserequired- true if feature is required, false otherwise. Corresponds to wsdl:required on the extension/assertion.- Returns:
- WebServiceFeature corresponding to the assertion namespace URI
- Throws:
jakarta.xml.ws.WebServiceException- if an unsupported namespace URI is passed
-
fromSpecClass
@NotNull public static AddressingVersion fromSpecClass(Class<? extends jakarta.xml.ws.EndpointReference> eprClass) Gets the correspondingAddressingVersioninstance from the EPR class. -
isRequired
public static boolean isRequired(jakarta.xml.ws.WebServiceFeature wsf) Returns true if the WebServiceFeature is either aAddressingFeatureorMemberSubmissionAddressingFeatureand is required.- Parameters:
wsf- The WebServiceFeature encaps- Returns:
- true if
wsfrequires WS-Addressing - Throws:
jakarta.xml.ws.WebServiceException- ifwsfdoes not contain eitherAddressingFeatureorMemberSubmissionAddressingFeature
-
isRequired
Returns true ifbindingcontains either aAddressingFeatureorMemberSubmissionAddressingFeatureand is required.- Parameters:
binding- The binding- Returns:
- true if
bindingrequires WS-Addressing
-
isEnabled
Returns true ifbindingcontains either aAddressingFeatureorMemberSubmissionAddressingFeatureand is enabled.- Parameters:
binding- The binding- Returns:
- true if WS-Addressing is enabled for
binding.
-
anonymousUri