Interface PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- Enclosing interface:
PlatformHttpEndpointBuilderFactory
public static interface PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint for the Platform HTTP component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()The content type this endpoint accepts as an input, such as application/xml or application/json. null or */* mean no restriction.cookieDomain(String cookieDomain) Sets which server can receive cookies.cookieHttpOnly(boolean cookieHttpOnly) Sets whether to prevent client side scripts from accessing created cookies.cookieHttpOnly(String cookieHttpOnly) Sets whether to prevent client side scripts from accessing created cookies.cookieMaxAge(Long cookieMaxAge) Sets the maximum cookie age in seconds.cookieMaxAge(String cookieMaxAge) Sets the maximum cookie age in seconds.cookiePath(String cookiePath) Sets the URL path that must exist in the requested URL in order to send the Cookie.cookieSameSite(String cookieSameSite) Sets whether to prevent the browser from sending cookies along with cross-site requests.cookieSameSite(org.apache.camel.component.platform.http.cookie.CookieConfiguration.CookieSameSite cookieSameSite) Sets whether to prevent the browser from sending cookies along with cross-site requests.cookieSecure(boolean cookieSecure) Sets whether the cookie is only sent to the server with an encrypted request over HTTPS.cookieSecure(String cookieSecure) Sets whether the cookie is only sent to the server with an encrypted request over HTTPS.httpMethodRestrict(String httpMethodRestrict) A comma separated list of HTTP methods to serve, e.g.matchOnUriPrefix(boolean matchOnUriPrefix) Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found.matchOnUriPrefix(String matchOnUriPrefix) Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found.muteException(boolean muteException) If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.muteException(String muteException) If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.The content type this endpoint produces, such as application/xml or application/json.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
advanced
-
consumes
The content type this endpoint accepts as an input, such as application/xml or application/json. null or */* mean no restriction. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
consumes- the value to set- Returns:
- the dsl builder
-
cookieDomain
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieDomain(String cookieDomain) Sets which server can receive cookies. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
cookieDomain- the value to set- Returns:
- the dsl builder
-
cookieHttpOnly
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieHttpOnly(boolean cookieHttpOnly) Sets whether to prevent client side scripts from accessing created cookies. The option is a:booleantype. Default: false Group: consumer- Parameters:
cookieHttpOnly- the value to set- Returns:
- the dsl builder
-
cookieHttpOnly
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieHttpOnly(String cookieHttpOnly) Sets whether to prevent client side scripts from accessing created cookies. The option will be converted to abooleantype. Default: false Group: consumer- Parameters:
cookieHttpOnly- the value to set- Returns:
- the dsl builder
-
cookieMaxAge
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieMaxAge(Long cookieMaxAge) Sets the maximum cookie age in seconds. The option is a:java.lang.Longtype. Group: consumer- Parameters:
cookieMaxAge- the value to set- Returns:
- the dsl builder
-
cookieMaxAge
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieMaxAge(String cookieMaxAge) Sets the maximum cookie age in seconds. The option will be converted to ajava.lang.Longtype. Group: consumer- Parameters:
cookieMaxAge- the value to set- Returns:
- the dsl builder
-
cookiePath
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookiePath(String cookiePath) Sets the URL path that must exist in the requested URL in order to send the Cookie. The option is a:java.lang.Stringtype. Default: / Group: consumer- Parameters:
cookiePath- the value to set- Returns:
- the dsl builder
-
cookieSameSite
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieSameSite(org.apache.camel.component.platform.http.cookie.CookieConfiguration.CookieSameSite cookieSameSite) Sets whether to prevent the browser from sending cookies along with cross-site requests. The option is a:org.apache.camel.component.platform.http.cookie.CookieConfiguration.CookieSameSitetype. Default: Lax Group: consumer- Parameters:
cookieSameSite- the value to set- Returns:
- the dsl builder
-
cookieSameSite
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieSameSite(String cookieSameSite) Sets whether to prevent the browser from sending cookies along with cross-site requests. The option will be converted to aorg.apache.camel.component.platform.http.cookie.CookieConfiguration.CookieSameSitetype. Default: Lax Group: consumer- Parameters:
cookieSameSite- the value to set- Returns:
- the dsl builder
-
cookieSecure
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieSecure(boolean cookieSecure) Sets whether the cookie is only sent to the server with an encrypted request over HTTPS. The option is a:booleantype. Default: false Group: consumer- Parameters:
cookieSecure- the value to set- Returns:
- the dsl builder
-
cookieSecure
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder cookieSecure(String cookieSecure) Sets whether the cookie is only sent to the server with an encrypted request over HTTPS. The option will be converted to abooleantype. Default: false Group: consumer- Parameters:
cookieSecure- the value to set- Returns:
- the dsl builder
-
httpMethodRestrict
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder httpMethodRestrict(String httpMethodRestrict) A comma separated list of HTTP methods to serve, e.g. GET,POST . If no methods are specified, all methods will be served. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
httpMethodRestrict- the value to set- Returns:
- the dsl builder
-
matchOnUriPrefix
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder matchOnUriPrefix(boolean matchOnUriPrefix) Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found. The option is a:booleantype. Default: false Group: consumer- Parameters:
matchOnUriPrefix- the value to set- Returns:
- the dsl builder
-
matchOnUriPrefix
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder matchOnUriPrefix(String matchOnUriPrefix) Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found. The option will be converted to abooleantype. Default: false Group: consumer- Parameters:
matchOnUriPrefix- the value to set- Returns:
- the dsl builder
-
muteException
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder muteException(boolean muteException) If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. The option is a:booleantype. Default: true Group: consumer- Parameters:
muteException- the value to set- Returns:
- the dsl builder
-
muteException
default PlatformHttpEndpointBuilderFactory.PlatformHttpEndpointBuilder muteException(String muteException) If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. The option will be converted to abooleantype. Default: true Group: consumer- Parameters:
muteException- the value to set- Returns:
- the dsl builder
-
produces
The content type this endpoint produces, such as application/xml or application/json. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
produces- the value to set- Returns:
- the dsl builder
-