Package org.opensaml.profile.action.impl
Class DecodeMessage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.impl.DecodeMessage
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
Action that decodes an incoming request into a
MessageContext.- Event:
EventIds.PROCEED_EVENT_ID,EventIds.UNABLE_TO_DECODE,EventIds.INVALID_MESSAGE- Postcondition:
- If decode succeeds, ProfileRequestContext.getInboundMessageContext() != null, The injected
MessageDecoderis destroyed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MessageDecoderTheMessageDecoderinstance used to decode the incoming message.private final org.slf4j.LoggerClass logger.private Class<?>Optional message type to enforce. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) Performs this action.voidsetMessageType(Class<?> type) Set a message type to enforce after decoding.Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, doPreExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
decoder
TheMessageDecoderinstance used to decode the incoming message. -
messageType
Optional message type to enforce.
-
-
Constructor Details
-
DecodeMessage
Constructor.- Parameters:
messageDecoder- theMessageDecoderused for the incoming request
-
-
Method Details
-
setMessageType
Set a message type to enforce after decoding.- Parameters:
type- message type- Since:
- 5.1.0
-
doExecute
Performs this action. Actions must override this method to perform their work.- Overrides:
doExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context
-