Class StaticEndpointAdapter
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointAdapter
org.citrusframework.endpoint.adapter.StaticEndpointAdapter
- All Implemented Interfaces:
EndpointAdapter
- Direct Known Subclasses:
EmptyResponseEndpointAdapter,RequestDispatchingEndpointAdapter,StaticResponseEndpointAdapter,TimeoutProducingEndpointAdapter
Static endpoint adapter always responds with static response message. No endpoint is provided as this is a
static endpoint adapter. Clients trying to get endpoint for interaction will receive runtime exception.
- Since:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MessagehandleMessageInternal(Message message) Subclasses must implement this method in order to handle incoming request message.withReuseMessage(boolean reuseMessage) Methods inherited from class org.citrusframework.endpoint.AbstractEndpointAdapter
getFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setName, setTestContextFactory
-
Constructor Details
-
StaticEndpointAdapter
public StaticEndpointAdapter() -
StaticEndpointAdapter
-
-
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:
-
getEndpoint
-
getEndpointConfiguration
-
withReuseMessage
-