Class HttpControllerEndpointSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,E>
org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec<S,E>
org.springframework.integration.http.dsl.BaseHttpInboundEndpointSpec<HttpControllerEndpointSpec,HttpRequestHandlingController>
org.springframework.integration.http.dsl.HttpControllerEndpointSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<HttpRequestHandlingController>,InitializingBean,Lifecycle,Phased,SmartLifecycle,ComponentsRegistration
public class HttpControllerEndpointSpec extends BaseHttpInboundEndpointSpec<HttpControllerEndpointSpec,HttpRequestHandlingController>
The
BaseHttpInboundEndpointSpec implementation for the HttpRequestHandlingController.- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
HttpRequestHandlingController
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec
HttpInboundEndpointSupportSpec.CrossOriginSpec, HttpInboundEndpointSupportSpec.RequestMappingSpec -
Field Summary
Fields inherited from class org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec
headerExpressions, headerMapper, requestMappingFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedHttpControllerEndpointSpec(HttpRequestHandlingController controller, String... path) -
Method Summary
Modifier and Type Method Description HttpControllerEndpointSpecerrorCode(String errorCode)The error code to use to signal an error in the message handling.HttpControllerEndpointSpecerrorsKey(String errorsKey)The key used to exposeErrorsin the core, in the case that message handling fails.HttpControllerEndpointSpecreplyKey(String replyKey)Specify the key to be used when adding the reply Message or payload to the core map (will be payload only unless the value ofBaseHttpInboundEndpoint.setExtractReplyPayload(boolean)isfalse).Methods inherited from class org.springframework.integration.http.dsl.BaseHttpInboundEndpointSpec
mergeWithDefaultConverters, messageConverters, multipartResolverMethods inherited from class org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec
crossOrigin, extractReplyPayload, getComponentsToRegister, headerExpression, headerExpression, headerExpressions, headerFunction, headerMapper, mappedRequestHeaders, mappedResponseHeaders, payloadExpression, payloadExpression, payloadFunction, requestMapping, requestPayloadType, requestPayloadType, statusCodeExpression, statusCodeExpression, statusCodeFunction, validatorMethods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
replyKey
Specify the key to be used when adding the reply Message or payload to the core map (will be payload only unless the value ofBaseHttpInboundEndpoint.setExtractReplyPayload(boolean)isfalse). The default key isreply.- Parameters:
replyKey- The reply key.- Returns:
- the spec
- See Also:
HttpRequestHandlingController.setReplyKey(String)
-
errorsKey
The key used to exposeErrorsin the core, in the case that message handling fails. Defaults toerrors.- Parameters:
errorsKey- The key value to set.- Returns:
- the spec
- See Also:
HttpRequestHandlingController.setErrorsKey(String)
-
errorCode
The error code to use to signal an error in the message handling.- Parameters:
errorCode- The error code to set.- Returns:
- the spec
- See Also:
HttpRequestHandlingController.setErrorCode(String)
-