Class AddressingType
java.lang.Object
com.sun.xml.ws.config.metro.parser.jsr109.AddressingType
- All Implemented Interfaces:
Locatable
This specifies the WS-Addressing requirements for a JAX-WS web service.
It corresponds to javax.xml.ws.soap.Addressing annotation or its
feature javax.xml.ws.soap.AddressingFeature.
If the "enabled" element is "true", WS-Addressing is enabled.
It means that the endpoint supports WS-Addressing but does not require
its use. The default value for "enabled" is "true".
If the WS-Addressing is enabled and the "required" element is "true",
it means that the endpoint requires WS-Addressing. The default value
for "required" is "false".
If WS-Addressing is enabled, the "responses" element determines
if an endpoint requires the use of only anonymous responses,
or only non-anonymous responses, or all. The value of the "responses"
element must be one of the following:
ANONYMOUS
NON_ANONYMOUS
ALL
The default value for the "responses" is ALL.
Java class for addressingType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="addressingType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="enabled" type="{http://java.sun.com/xml/ns/javaee}true-falseType" minOccurs="0"/>
<element name="required" type="{http://java.sun.com/xml/ns/javaee}true-falseType" minOccurs="0"/>
<element name="responses" type="{http://java.sun.com/xml/ns/javaee}addressing-responsesType" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TrueFalseTypeprotected Locatorprotected TrueFalseTypeprotected AddressingResponsesType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the enabled property.Gets the value of the required property.Gets the value of the responses property.voidsetEnabled(TrueFalseType value) Sets the value of the enabled property.voidsetRequired(TrueFalseType value) Sets the value of the required property.voidSets the value of the responses property.voidsetSourceLocation(Locator newLocator)
-
Field Details
-
enabled
-
required
-
responses
-
locator
-
-
Constructor Details
-
AddressingType
public AddressingType()
-
-
Method Details
-
getEnabled
Gets the value of the enabled property.- Returns:
- possible object is
TrueFalseType
-
setEnabled
Sets the value of the enabled property.- Parameters:
value- allowed object isTrueFalseType
-
getRequired
Gets the value of the required property.- Returns:
- possible object is
TrueFalseType
-
setRequired
Sets the value of the required property.- Parameters:
value- allowed object isTrueFalseType
-
getResponses
Gets the value of the responses property.- Returns:
- possible object is
AddressingResponsesType
-
setResponses
Sets the value of the responses property.- Parameters:
value- allowed object isAddressingResponsesType
-
sourceLocation
- Specified by:
sourceLocationin interfaceLocatable- Returns:
- null if the location information is unavaiable,
or otherwise return a immutable valid
Locatorobject.
-
setSourceLocation
-