public class EncodeMessage extends AbstractProfileAction
MessageContext.
The MessageEncoderFactory is used to obtain a new MessageEncoder to
use, and the encoder is destroyed upon completion.
| Constructor and Description |
|---|
EncodeMessage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setMessageEncoderFactory(MessageEncoderFactory factory)
Set the encoder factory to use.
|
void |
setMessageHandler(MessageHandler handler)
The supplied
MessageHandler will be invoked on the MessageContext after
MessageEncoder.prepareContext(), and prior to invoking MessageEncoder.encode(). |
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedpublic void setMessageEncoderFactory(@Nonnull MessageEncoderFactory factory)
factory - factory to usepublic void setMessageHandler(@Nullable MessageHandler handler)
The supplied MessageHandler will be invoked on the MessageContext after
MessageEncoder.prepareContext(), and prior to invoking MessageEncoder.encode().
Its use is optional and primarily used for transport/binding-specific message handling,
as opposed to more generalized message handling operations which would typically be invoked
earlier than this action. For more details see MessageEncoder.
handler - a message handlerprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request contextCopyright © 2021. All rights reserved.