Class AbstractMessageConstructionInterceptor
- java.lang.Object
-
- com.consol.citrus.validation.interceptor.AbstractMessageConstructionInterceptor
-
- All Implemented Interfaces:
com.consol.citrus.message.MessageDirectionAware
,com.consol.citrus.message.MessageTransformer
,com.consol.citrus.message.MessageTypeSelector
,com.consol.citrus.validation.interceptor.MessageConstructionInterceptor
@Deprecated public abstract class AbstractMessageConstructionInterceptor extends Object implements com.consol.citrus.validation.interceptor.MessageConstructionInterceptor
Deprecated.since 3.0 in favor of usingAbstractMessageProcessor
Abstract message construction interceptor reads message payload and headers for separate interceptor methods. Subclasses can either do payload modifying or header modifying or both depending on which method is overwritten.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description AbstractMessageConstructionInterceptor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.consol.citrus.message.MessageDirection
getDirection()
Deprecated.Gets the direction.protected String
getName()
Deprecated.Gets this interceptors name.protected com.consol.citrus.message.Message
interceptMessage(com.consol.citrus.message.Message message, String messageType, com.consol.citrus.context.TestContext context)
Deprecated.Intercept the message construction.com.consol.citrus.message.Message
interceptMessageConstruction(com.consol.citrus.message.Message message, String messageType, com.consol.citrus.context.TestContext context)
Deprecated.void
setDirection(com.consol.citrus.message.MessageDirection direction)
Deprecated.Sets the direction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
interceptMessageConstruction
public com.consol.citrus.message.Message interceptMessageConstruction(com.consol.citrus.message.Message message, String messageType, com.consol.citrus.context.TestContext context)
Deprecated.- Specified by:
interceptMessageConstruction
in interfacecom.consol.citrus.validation.interceptor.MessageConstructionInterceptor
-
getName
protected String getName()
Deprecated.Gets this interceptors name.- Returns:
-
interceptMessage
protected com.consol.citrus.message.Message interceptMessage(com.consol.citrus.message.Message message, String messageType, com.consol.citrus.context.TestContext context)
Deprecated.Intercept the message construction. Subclasses may overwrite this method and modify message payload.- Parameters:
message
- the payloadmessageType
-context
- the current test context
-
getDirection
public com.consol.citrus.message.MessageDirection getDirection()
Deprecated.Gets the direction.- Specified by:
getDirection
in interfacecom.consol.citrus.message.MessageDirectionAware
- Returns:
-
setDirection
public void setDirection(com.consol.citrus.message.MessageDirection direction)
Deprecated.Sets the direction.- Parameters:
direction
-
-
-