org.apache.cxf.ws.addressing
Class MAPAggregator

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.ws.addressing.MAPAggregator
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>

public class MAPAggregator
extends AbstractPhaseInterceptor<Message>

Logical Handler responsible for aggregating the Message Addressing Properties for outgoing messages.


Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> messageIDs
          REVISIT: map usage implies that the *same* interceptor instance is used in all chains.
static java.lang.String USING_ADDRESSING
           
 
Constructor Summary
MAPAggregator()
          Constructor.
 
Method Summary
 boolean allowDuplicates()
          Indicates if duplicate messageIDs are allowed.
protected  java.lang.String getActionUri(Message message)
           
 void handleFault(Message message)
          Invoked when unwinding normal interceptor chain when a fault occurred.
 void handleMessage(Message message)
          Invoked for normal processing of inbound and outbound messages.
 boolean isAddressingRequired()
          Whether the use of addressing is completely required for this endpoint
 boolean isUsingAddressingAdvisory()
          Whether the presence of the element in the WSDL is purely advisory, i.e.
protected  boolean mediate(Message message, boolean isFault)
          Mediate message flow.
 void setAddressingRequired(boolean required)
          Sets whether the use of addressing is completely required for this endpoint
 void setAllowDuplicates(boolean ad)
          Allows/disallows duplicate messageIdDs.
 void setUsingAddressingAdvisory(boolean advisory)
          Controls whether the presence of the element in the WSDL is purely advisory, i.e.
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USING_ADDRESSING

public static final java.lang.String USING_ADDRESSING

messageIDs

protected final java.util.Map<java.lang.String,java.lang.String> messageIDs
REVISIT: map usage implies that the *same* interceptor instance is used in all chains.

Constructor Detail

MAPAggregator

public MAPAggregator()
Constructor.

Method Detail

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 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 element is advisory

setUsingAddressingAdvisory

public void setUsingAddressingAdvisory(boolean advisory)
Controls whether the presence of the 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 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


handleMessage

public void handleMessage(Message message)
Invoked for normal processing of inbound and outbound messages.

Parameters:
message - the current message

handleFault

public void handleFault(Message message)
Invoked when unwinding normal interceptor chain when a fault occurred.

Specified by:
handleFault in interface Interceptor<Message>
Overrides:
handleFault in class AbstractPhaseInterceptor<Message>
Parameters:
message - the current message

mediate

protected boolean mediate(Message message,
                          boolean isFault)
Mediate message flow.

Parameters:
message - the current message
isFault - true if a fault is being mediated
Returns:
true if processing should continue on dispatch path

getActionUri

protected java.lang.String getActionUri(Message message)


Apache CXF