Package org.apache.cxf.ws.addressing
Class MAPAggregator
- All Implemented Interfaces:
Interceptor<Message>
,PhaseInterceptor<Message>
Logical Handler responsible for aggregating the Message Addressing
Properties for outgoing messages.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected boolean
protected WSAddressingFeature.AddressingResponses
protected boolean
static final String
protected MessageIdCache
static final String
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if duplicate messageIDs are allowed.Collection<PhaseInterceptor<? extends Message>>
Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added.Sets Addressing ResponseReturns the cache used to enforce duplicate message IDs whenallowDuplicates()
returnsfalse
.void
handleFault
(Message message) Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.void
handleMessage
(Message message) Invoked for normal processing of inbound and outbound messages.boolean
Whether the use of addressing is completely required for this endpointboolean
Whether the presence of the <wsaw:UsingAddressing> element in the WSDL is purely advisory, i.e.void
setAddressingRequired
(boolean required) Sets whether the use of addressing is completely required for this endpointvoid
Sets Addresing Responsevoid
setAllowDuplicates
(boolean ad) Allows/disallows duplicate messageIdDs.void
setMessageIdCache
(MessageIdCache messageIdCache) Sets the cache used to enforce duplicate message IDs whenallowDuplicates()
returnsfalse
.void
setUsingAddressingAdvisory
(boolean advisory) Controls whether the presence of the <wsaw:UsingAddressing> element in the WSDL is purely advisory, i.e.
-
Field Details
-
USING_ADDRESSING
-
ADDRESSING_DISABLED
-
DECOUPLED_DESTINATION
-
ACTION_VERIFIED
-
ADDRESSING_NAMESPACE
-
messageIdCache
-
usingAddressingAdvisory
protected boolean usingAddressingAdvisory -
addressingRequired
protected boolean addressingRequired -
allowDuplicates
protected boolean allowDuplicates -
addressingResponses
-
-
Constructor Details
-
MAPAggregator
public MAPAggregator()Constructor.
-
-
Method Details
-
allowDuplicates
public boolean allowDuplicates()Indicates if duplicate messageIDs are allowed.- Returns:
- true if duplicate messageIDs are allowed
-
setAllowDuplicates
public void setAllowDuplicates(boolean ad) Allows/disallows duplicate messageIdDs.- Parameters:
ad
- whether duplicate messageIDs are allowed
-
isUsingAddressingAdvisory
public boolean isUsingAddressingAdvisory()Whether the presence of the <wsaw:UsingAddressing> element in the WSDL is purely advisory, i.e. its absence doesn't prevent the encoding of WS-A headers.- Returns:
- true if the presence of the <wsaw:UsingAddressing> element is advisory
-
setUsingAddressingAdvisory
public void setUsingAddressingAdvisory(boolean advisory) Controls whether the presence of the <wsaw:UsingAddressing> element in the WSDL is purely advisory, i.e. its absence doesn't prevent the encoding of WS-A headers.- Parameters:
advisory
- true if the presence of the <wsaw:UsingAddressing> element is to be advisory
-
isAddressingRequired
public boolean isAddressingRequired()Whether the use of addressing is completely required for this endpoint- Returns:
- true if addressing is required
-
setAddressingRequired
public void setAddressingRequired(boolean required) Sets whether the use of addressing is completely required for this endpoint -
setAddressingResponses
Sets Addresing Response -
getMessageIdCache
Returns the cache used to enforce duplicate message IDs whenallowDuplicates()
returnsfalse
.- Returns:
- the cache used to enforce duplicate message IDs
-
setMessageIdCache
Sets the cache used to enforce duplicate message IDs whenallowDuplicates()
returnsfalse
.- Parameters:
messageIdCache
- the cache to use- Throws:
NullPointerException
- ifmessageIdCache
isnull
-
getAddressingResponses
Sets Addressing Response -
handleMessage
Invoked for normal processing of inbound and outbound messages.- Parameters:
message
- the current message
-
handleFault
Description copied from interface:Interceptor
Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.- Specified by:
handleFault
in interfaceInterceptor<Message>
- Overrides:
handleFault
in classAbstractPhaseInterceptor<Message>
-
getAdditionalInterceptors
Description copied from interface:PhaseInterceptor
Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
getAdditionalInterceptors
in interfacePhaseInterceptor<Message>
- Overrides:
getAdditionalInterceptors
in classAbstractPhaseInterceptor<Message>
- Returns:
- the collection of interceptors
-