S
- the target BaseHttpInboundEndpointSpec
implementation type.E
- the target HttpRequestHandlingEndpointSupport
implementation type.public abstract class BaseHttpInboundEndpointSpec<S extends BaseHttpInboundEndpointSpec<S,E>,E extends org.springframework.integration.http.inbound.HttpRequestHandlingEndpointSupport> extends MessagingGatewaySpec<S,E> implements ComponentsRegistration
Modifier and Type | Class and Description |
---|---|
static class |
BaseHttpInboundEndpointSpec.CrossOriginSpec
A fluent API for the
CrossOrigin . |
static class |
BaseHttpInboundEndpointSpec.RequestMappingSpec
A fluent API for the
RequestMapping . |
logger, PARSER, target
Modifier and Type | Method and Description |
---|---|
S |
crossOrigin(Consumer<BaseHttpInboundEndpointSpec.CrossOriginSpec> crossOrigin) |
S |
extractReplyPayload(boolean extractReplyPayload) |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
S |
headerExpression(java.lang.String header,
org.springframework.expression.Expression expression) |
S |
headerExpression(java.lang.String header,
java.lang.String expression) |
S |
headerExpressions(java.util.Map<java.lang.String,org.springframework.expression.Expression> headerExpressions) |
S |
headerFunction(java.lang.String header,
Function<org.springframework.http.HttpEntity<?>,?> headerFunction) |
S |
headerMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper) |
S |
mappedRequestHeaders(java.lang.String... patterns) |
S |
mappedResponseHeaders(java.lang.String... patterns) |
S |
mergeWithDefaultConverters(boolean mergeWithDefaultConverters) |
S |
messageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters) |
S |
multipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver) |
S |
payloadExpression(org.springframework.expression.Expression payloadExpression) |
S |
payloadExpression(java.lang.String payloadExpression) |
<P> S |
payloadFunction(Function<org.springframework.http.HttpEntity<P>,?> payloadFunction) |
S |
requestMapping(Consumer<BaseHttpInboundEndpointSpec.RequestMappingSpec> requestMapping) |
S |
requestPayloadType(java.lang.Class<?> requestPayloadType) |
S |
statusCodeExpression(org.springframework.expression.Expression statusCodeExpression) |
S |
statusCodeFunction(Function<java.lang.Void,?> statusCodeFunction) |
autoStartup, errorChannel, errorChannel, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout
_this, doGet, get, getId, getObject, getObjectType, isSingleton
public S requestMapping(Consumer<BaseHttpInboundEndpointSpec.RequestMappingSpec> requestMapping)
public S crossOrigin(Consumer<BaseHttpInboundEndpointSpec.CrossOriginSpec> crossOrigin)
public S payloadExpression(java.lang.String payloadExpression)
public S payloadExpression(org.springframework.expression.Expression payloadExpression)
public <P> S payloadFunction(Function<org.springframework.http.HttpEntity<P>,?> payloadFunction)
public S headerExpressions(java.util.Map<java.lang.String,org.springframework.expression.Expression> headerExpressions)
public S headerExpression(java.lang.String header, org.springframework.expression.Expression expression)
public S headerExpression(java.lang.String header, java.lang.String expression)
public S headerFunction(java.lang.String header, Function<org.springframework.http.HttpEntity<?>,?> headerFunction)
header
- the header name to add.headerFunction
- the function to evaluate the header value against HttpEntity
.HttpRequestHandlingEndpointSupport.setHeaderExpressions(Map)
public S messageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters)
public S mergeWithDefaultConverters(boolean mergeWithDefaultConverters)
public S headerMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)
public S mappedRequestHeaders(java.lang.String... patterns)
public S mappedResponseHeaders(java.lang.String... patterns)
public S requestPayloadType(java.lang.Class<?> requestPayloadType)
public S extractReplyPayload(boolean extractReplyPayload)
public S multipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
public S statusCodeExpression(org.springframework.expression.Expression statusCodeExpression)
public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration