Class HttpInboundEndpointSupportSpec<S extends HttpInboundEndpointSupportSpec<S,E>, E extends BaseHttpInboundEndpoint> 
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,E>
 
org.springframework.integration.dsl.MessagingGatewaySpec<S,E>
 
org.springframework.integration.http.dsl.HttpInboundEndpointSupportSpec<S,E> 
- Type Parameters:
- S- the target spec extension type.
- E- the target endpoint type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<E>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- BaseHttpInboundEndpointSpec,- WebFluxInboundEndpointSpec
public abstract class HttpInboundEndpointSupportSpec<S extends HttpInboundEndpointSupportSpec<S,E>, E extends BaseHttpInboundEndpoint> 
extends MessagingGatewaySpec<S,E>
implements ComponentsRegistration 
- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA fluent API for theCrossOrigin.static final classA fluent API for theRequestMapping.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String, Expression> protected final HeaderMapper<HttpHeaders> protected final RequestMappingFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHttpInboundEndpointSupportSpec(E gateway, String... path) 
- 
Method SummaryModifier and TypeMethodDescriptionextractReplyPayload(boolean extractReplyPayload) Specify whether only the reply Message's payload should be passed in the response.headerExpression(String header, String expression) Specify SpEL expression for provided header to populate.headerExpression(String header, Expression expression) Specify SpEL expression for provided header to populate.headerExpressions(Map<String, Expression> expressions) Specify a Map of SpEL expressions to evaluate in order to generate the Message headers.<P> SheaderFunction(String header, Function<HttpEntity<P>, ?> headerFunction) Specify aFunctionfor provided header to populate.headerMapper(HeaderMapper<HttpHeaders> mapper) Set theHeaderMapperto use when mapping between HTTP headers and MessageHeaders.mappedRequestHeaders(String... patterns) Provide the pattern array for request headers to map.mappedResponseHeaders(String... patterns) Provide the pattern array for response headers to map.payloadExpression(String payloadExpression) Specify a SpEL expression to evaluate in order to generate the Message payload.payloadExpression(Expression payloadExpression) Specify a SpEL expression to evaluate in order to generate the Message payload.<P> SpayloadFunction(Function<HttpEntity<P>, ?> payloadFunction) Specify aFunctionto evaluate in order to generate the Message payload.Provide aConsumerfor configuringRequestMappingviaHttpInboundEndpointSupportSpec.RequestMappingSpec.requestPayloadType(Class<?> requestPayloadType) Specify the type of payload to be generated when the inbound HTTP request content is read by theHttpMessageConverters.requestPayloadType(ResolvableType requestPayloadType) Specify the type of payload to be generated when the inbound HTTP request content is read by theHttpMessageConverters.statusCodeExpression(String statusCodeExpression) Specify theExpressionto resolve a status code for Response to override the default '200 OK' or '500 Internal Server Error' for a timeout.statusCodeExpression(Expression statusCodeExpression) Specify theExpressionto resolve a status code for Response to override the default '200 OK' or '500 Internal Server Error' for a timeout.statusCodeFunction(Function<RequestEntity<?>, ?> statusCodeFunction) Specify theFunctionto resolve a status code for Response to override the default '200 OK' or '500 Internal Server Error' for a timeout.Specify aValidatorto validate a converted payload from request.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpecautoStartup, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingletonMethods inherited from interface org.springframework.context.SmartLifecycleisPauseable
- 
Field Details- 
requestMapping
- 
headerExpressions
- 
headerMapper
 
- 
- 
Constructor Details- 
HttpInboundEndpointSupportSpec
 
- 
- 
Method Details- 
requestMappingProvide aConsumerfor configuringRequestMappingviaHttpInboundEndpointSupportSpec.RequestMappingSpec.- Parameters:
- mapping- the- Consumerto configure- HttpInboundEndpointSupportSpec.RequestMappingSpec.
- Returns:
- the spec
- See Also:
 
- 
crossOrigin- Parameters:
- crossOrigin- the- Consumerto configure- HttpInboundEndpointSupportSpec.CrossOriginSpec.
- Returns:
- the spec
- See Also:
 
- 
payloadExpression
- 
payloadExpressionSpecify a SpEL expression to evaluate in order to generate the Message payload.- Parameters:
- payloadExpression- The payload expression.
- Returns:
- the spec
- See Also:
 
- 
payloadFunction
- 
headerExpressionsSpecify a Map of SpEL expressions to evaluate in order to generate the Message headers.- Parameters:
- expressions- The- Mapof SpEL expressions for headers.
- Returns:
- the spec
- See Also:
 
- 
headerExpression
- 
headerExpressionSpecify SpEL expression for provided header to populate.- Parameters:
- header- the header name to populate.
- expression- the SpEL expression for the header.
- Returns:
- the spec
- See Also:
 
- 
headerFunctionSpecify aFunctionfor provided header to populate.- Type Parameters:
- P- the expected HTTP body type.
- Parameters:
- header- the header name to add.
- headerFunction- the function to evaluate the header value against- HttpEntity.
- Returns:
- the current Spec.
- See Also:
 
- 
headerMapperSet theHeaderMapperto use when mapping between HTTP headers and MessageHeaders.- Parameters:
- mapper- The header mapper.
- Returns:
- the current Spec.
 
- 
mappedRequestHeaders
- 
mappedResponseHeaders
- 
requestPayloadTypeSpecify the type of payload to be generated when the inbound HTTP request content is read by theHttpMessageConverters. By default, this value is null which means at runtime any "text" Content-Type will result in String while all others default tobyte[].class.- Parameters:
- requestPayloadType- The payload type.
- Returns:
- the current Spec.
 
- 
requestPayloadTypeSpecify the type of payload to be generated when the inbound HTTP request content is read by theHttpMessageConverters. By default, this value is null which means at runtime any "text" Content-Type will result in String while all others default tobyte[].class.- Parameters:
- requestPayloadType- The payload type.
- Returns:
- the current Spec.
 
- 
extractReplyPayloadSpecify whether only the reply Message's payload should be passed in the response. If this is set tofalse, the entire Message will be used to generate the response. The default istrue.- Parameters:
- extractReplyPayload- true to extract the reply payload.
- Returns:
- the current Spec.
 
- 
statusCodeExpressionSpecify theExpressionto resolve a status code for Response to override the default '200 OK' or '500 Internal Server Error' for a timeout.- Parameters:
- statusCodeExpression- The status code Expression.
- Returns:
- the current Spec.
- See Also:
 
- 
statusCodeExpressionSpecify theExpressionto resolve a status code for Response to override the default '200 OK' or '500 Internal Server Error' for a timeout.- Parameters:
- statusCodeExpression- The status code Expression.
- Returns:
- the current Spec.
- See Also:
 
- 
statusCodeFunction
- 
validator
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-