Class StaticResponseEndpointAdapter
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointAdapter
org.citrusframework.endpoint.adapter.StaticEndpointAdapter
org.citrusframework.endpoint.adapter.StaticResponseEndpointAdapter
- All Implemented Interfaces:
EndpointAdapter
Endpoint adapter always returns a static response message.
- Since:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message header.Gets the message payload.Gets the value of the messagePayloadResource property.Obtains the messagePayloadResourceCharset.handleMessageInternal(Message request) Subclasses must implement this method in order to handle incoming request message.voidsetMessageHeader(Map<String, Object> messageHeader) Set the response message header.voidsetMessagePayload(String messagePayload) Set the response message payload.voidsetMessagePayloadResource(String messagePayloadResource) Sets the messagePayloadResource property.voidsetMessagePayloadResourceCharset(String messagePayloadResourceCharset) Specifies the messagePayloadResourceCharset.Methods inherited from class org.citrusframework.endpoint.adapter.StaticEndpointAdapter
getEndpoint, getEndpointConfigurationMethods inherited from class org.citrusframework.endpoint.AbstractEndpointAdapter
getFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setName, setTestContextFactory
-
Constructor Details
-
StaticResponseEndpointAdapter
public StaticResponseEndpointAdapter()
-
-
Method Details
-
handleMessageInternal
Description copied from class:AbstractEndpointAdapterSubclasses must implement this method in order to handle incoming request message. If this method does not return any response message fallback endpoint adapter is invoked for processing.- Specified by:
handleMessageInternalin classAbstractEndpointAdapter- Returns:
-
getMessagePayload
Gets the message payload.- Returns:
-
setMessagePayload
Set the response message payload.- Parameters:
messagePayload- the messagePayload to set
-
getMessagePayloadResource
Gets the value of the messagePayloadResource property.- Returns:
- the messagePayloadResource
-
setMessagePayloadResource
Sets the messagePayloadResource property.- Parameters:
messagePayloadResource-
-
getMessagePayloadResourceCharset
Obtains the messagePayloadResourceCharset.- Returns:
-
setMessagePayloadResourceCharset
Specifies the messagePayloadResourceCharset.- Parameters:
messagePayloadResourceCharset-
-
getMessageHeader
Gets the message header.- Returns:
-
setMessageHeader
Set the response message header.- Parameters:
messageHeader- the messageHeader to set
-