Home » synapse-1.2-src » org.apache.synapse.mediators.transform » [javadoc | source]
public class: HeaderMediator [javadoc | source]

All Implemented Interfaces:

The header mediator is able to set a given value as a SOAP header, or remove a given header from the current message instance. This supports the headers currently supported by the HeaderType class. If an expression is supplied, its runtime value is evaluated using the current message. Unless the action is set to remove, the default behavior of this mediator is to set a header value.
Field Summary
public static final  int ACTION_SET     
public static final  int ACTION_REMOVE     
Fields inherited from org.apache.synapse.mediators.AbstractMediator:
log,  trace,  traceState
Method from org.apache.synapse.mediators.transform.HeaderMediator Summary:
getAction,   getExpression,   getQName,   getValue,   mediate,   setAction,   setExpression,   setQName,   setValue
Methods from org.apache.synapse.mediators.AbstractMediator:
auditLog,   auditWarn,   getTraceState,   getType,   handleException,   handleException,   isTraceOn,   isTraceOrDebugOn,   setEffectiveTraceState,   setTraceState,   shouldTrace,   traceOrDebug,   traceOrDebugWarn
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.mediators.transform.HeaderMediator Detail:
 public int getAction() 
 public SynapseXPath getExpression() 
 public QName getQName() 
 public String getValue() 
 public boolean mediate(MessageContext synCtx) 
    Sets/Removes a SOAP header on the current message
 public  void setAction(int action) 
 public  void setExpression(SynapseXPath expression) 
 public  void setQName(QName qName) 
 public  void setValue(String value)