Class HttpControllerEndpointSpec
java.lang.Object
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:
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:
-
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
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpControllerEndpointSpec(HttpRequestHandlingController controller, String... path) -
Method Summary
Modifier and TypeMethodDescriptionThe error code to use to signal an error in the message handling.The key used to exposeErrorsin the core, in the case that message handling fails.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, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
HttpControllerEndpointSpec
-
-
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:
-
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:
-
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:
-