public class EncodeMessage extends AbstractProfileAction
MessageContext.
The MessageEncoderFactory is used to obtain a new MessageEncoder to
use, and the encoder is destroyed upon completion.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX, EventIds.UNABLE_TO_ENCODE| Modifier and Type | Field and Description |
|---|---|
private MessageEncoderFactory |
encoderFactory
The factory to use to obtain an encoder.
|
private org.slf4j.Logger |
log
Class logger.
|
private MessageHandler |
messageHandler
An optional
MessageHandler instance to be invoked after
MessageEncoder.prepareContext() and prior to MessageEncoder.encode(). |
private MessageContext |
msgContext
The outbound MessageContext to encode.
|
| Constructor and Description |
|---|
EncodeMessage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
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, isInitialized@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private MessageEncoderFactory encoderFactory
@Nullable private MessageHandler messageHandler
MessageHandler instance to be invoked after
MessageEncoder.prepareContext() and prior to MessageEncoder.encode().@Nullable private MessageContext msgContext
public 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)
doPreExecute in class AbstractProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.