public class AddActionHandler extends AbstractHeaderGeneratingMessageHandler
If a Fault is registered in the context, the value from
WSAddressingContext.getFaultActionURI() will be used, if present. If not,
then the locally-configured value from getFaultActionURI() will be used.
If neither is present, then a value will be selected based on the Fault.getCode()
via selectActionURIForFault(Fault).
The value from WSAddressingContext.getActionURI() will be used, if present. If not,
then the locally-configured value from getActionURI() will be used. If neither is present,
no header will be added.
| Modifier and Type | Field and Description |
|---|---|
private String |
actionURI
The configured Action URI value.
|
private String |
faultActionURI
The configured Fault Action URI value.
|
private Logger |
log
Logger.
|
private String |
sendURI
The actual calculated Action URI to send.
|
| Constructor and Description |
|---|
AddActionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
String |
getActionURI()
Get the Action URI.
|
String |
getFaultActionURI()
Get the Fault Action URI.
|
protected String |
selectActionURIForFault(Fault fault)
Select the Action URI value to return for the given
Fault. |
void |
setActionURI(String uri)
Set the expected Action URI value.
|
void |
setFaultActionURI(String uri)
Set the Fault Action URI value.
|
decorateGeneratedHeader, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategydoPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate Logger log
private String actionURI
private String faultActionURI
private String sendURI
public void setActionURI(@Nullable String uri)
uri - the new URI value@Nullable public String getFaultActionURI()
public void setFaultActionURI(@Nullable String uri)
uri - the new URI valueprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke in class AbstractHeaderGeneratingMessageHandlerorg.opensaml.messaging.handler.MessageHandlerException@Nonnull protected String selectActionURIForFault(@Nonnull Fault fault)
Fault.fault - the faultprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.