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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected WSAddressingFeature.AddressingResponsesprotected booleanstatic final Stringprotected MessageIdCachestatic final Stringprotected boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates 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.voidhandleFault(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.voidhandleMessage(Message message) Invoked for normal processing of inbound and outbound messages.booleanWhether the use of addressing is completely required for this endpointbooleanWhether 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.voidsetAddressingRequired(boolean required) Sets whether the use of addressing is completely required for this endpointvoidSets Addresing ResponsevoidsetAllowDuplicates(boolean ad) Allows/disallows duplicate messageIdDs.voidsetMessageIdCache(MessageIdCache messageIdCache) Sets the cache used to enforce duplicate message IDs whenallowDuplicates()returnsfalse.voidsetUsingAddressingAdvisory(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.
- 
Field Details- 
USING_ADDRESSING
- 
ADDRESSING_DISABLED
- 
DECOUPLED_DESTINATION
- 
ACTION_VERIFIED
- 
ADDRESSING_NAMESPACE
- 
messageIdCache
- 
usingAddressingAdvisoryprotected boolean usingAddressingAdvisory
- 
addressingRequiredprotected boolean addressingRequired
- 
allowDuplicatesprotected boolean allowDuplicates
- 
addressingResponses
 
- 
- 
Constructor Details- 
MAPAggregatorpublic MAPAggregator()Constructor.
 
- 
- 
Method Details- 
allowDuplicatespublic boolean allowDuplicates()Indicates if duplicate messageIDs are allowed.- Returns:
- true if duplicate messageIDs are allowed
 
- 
setAllowDuplicatespublic void setAllowDuplicates(boolean ad) Allows/disallows duplicate messageIdDs.- Parameters:
- ad- whether duplicate messageIDs are allowed
 
- 
isUsingAddressingAdvisorypublic 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
 
- 
setUsingAddressingAdvisorypublic 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
 
- 
isAddressingRequiredpublic boolean isAddressingRequired()Whether the use of addressing is completely required for this endpoint- Returns:
- true if addressing is required
 
- 
setAddressingRequiredpublic void setAddressingRequired(boolean required) Sets whether the use of addressing is completely required for this endpoint
- 
setAddressingResponsesSets Addresing Response
- 
getMessageIdCacheReturns the cache used to enforce duplicate message IDs whenallowDuplicates()returnsfalse.- Returns:
- the cache used to enforce duplicate message IDs
 
- 
setMessageIdCacheSets the cache used to enforce duplicate message IDs whenallowDuplicates()returnsfalse.- Parameters:
- messageIdCache- the cache to use
- Throws:
- NullPointerException- if- messageIdCacheis- null
 
- 
getAddressingResponsesSets Addressing Response
- 
handleMessageInvoked for normal processing of inbound and outbound messages.- Parameters:
- message- the current message
 
- 
handleFaultDescription copied from interface:InterceptorCalled 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:
- handleFaultin interface- Interceptor<Message>
- Overrides:
- handleFaultin class- AbstractPhaseInterceptor<Message>
 
- 
getAdditionalInterceptorsDescription copied from interface:PhaseInterceptorReturns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
- getAdditionalInterceptorsin interface- PhaseInterceptor<Message>
- Overrides:
- getAdditionalInterceptorsin class- AbstractPhaseInterceptor<Message>
- Returns:
- the collection of interceptors
 
 
-