Class FunctionProperties
- java.lang.Object
-
- org.springframework.cloud.function.context.FunctionProperties
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="spring.cloud.function") public class FunctionProperties extends Object implements org.springframework.context.EnvironmentAware, org.springframework.context.ApplicationContextAware
- Since:
- 3.0
- Author:
- Oleg Zhurakousky
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionProperties.FunctionConfigurationProperties
-
Field Summary
Fields Modifier and Type Field Description static StringEXPECT_CONTENT_TYPE_HEADERName of the header to be used to instruct function to apply this content type for output conversion.static StringFUNCTION_DEFINITIONThe name of function definition property.static StringPREFIXThe name prefix for properties defined by this properties class.static StringROUTING_EXPRESSIONSpEL expression to be used with RoutingFunction.static StringSKIP_CONVERSION_HEADERDeprecated.since 3.1.
-
Constructor Summary
Constructors Constructor Description FunctionProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()Map<String,FunctionProperties.FunctionConfigurationProperties>getConfiguration()StringgetDefinition()StringgetExpectedContentType()List<String>getIneligibleDefinitions()StringgetRoutingExpression()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetConfiguration(Map<String,FunctionProperties.FunctionConfigurationProperties> configuration)voidsetDefinition(String definition)voidsetEnvironment(org.springframework.core.env.Environment environment)voidsetExpectedContentType(String expectedContentType)voidsetIneligibleDefinitions(List<String> definitions)voidsetRoutingExpression(String routingExpression)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
The name prefix for properties defined by this properties class.- See Also:
- Constant Field Values
-
SKIP_CONVERSION_HEADER
@Deprecated public static final String SKIP_CONVERSION_HEADER
Deprecated.since 3.1. Not used anymoreName of the header to be used to instruct function catalog to skip input type conversion.- See Also:
- Constant Field Values
-
EXPECT_CONTENT_TYPE_HEADER
public static final String EXPECT_CONTENT_TYPE_HEADER
Name of the header to be used to instruct function to apply this content type for output conversion.- See Also:
- Constant Field Values
-
ROUTING_EXPRESSION
public static final String ROUTING_EXPRESSION
SpEL expression to be used with RoutingFunction.- See Also:
- Constant Field Values
-
FUNCTION_DEFINITION
public static final String FUNCTION_DEFINITION
The name of function definition property.- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfiguration
public Map<String,FunctionProperties.FunctionConfigurationProperties> getConfiguration()
-
setConfiguration
public void setConfiguration(Map<String,FunctionProperties.FunctionConfigurationProperties> configuration)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
getDefinition
public String getDefinition()
-
setDefinition
public void setDefinition(String definition)
-
getRoutingExpression
public String getRoutingExpression()
-
setRoutingExpression
public void setRoutingExpression(String routingExpression)
-
getExpectedContentType
public String getExpectedContentType()
-
setExpectedContentType
public void setExpectedContentType(String expectedContentType)
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
-