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 class
FunctionProperties.FunctionConfigurationProperties
-
Field Summary
Fields Modifier and Type Field Description static String
EXPECT_CONTENT_TYPE_HEADER
Name of the header to be used to instruct function to apply this content type for output conversion.static String
FUNCTION_DEFINITION
The name of function definition property.static String
PREFIX
The name prefix for properties defined by this properties class.static String
ROUTING_EXPRESSION
SpEL expression to be used with RoutingFunction.static String
SKIP_CONVERSION_HEADER
Deprecated.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.ApplicationContext
getApplicationContext()
Map<String,FunctionProperties.FunctionConfigurationProperties>
getConfiguration()
String
getDefinition()
String
getExpectedContentType()
List<String>
getIneligibleDefinitions()
String
getRoutingExpression()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setConfiguration(Map<String,FunctionProperties.FunctionConfigurationProperties> configuration)
void
setDefinition(String definition)
void
setEnvironment(org.springframework.core.env.Environment environment)
void
setExpectedContentType(String expectedContentType)
void
setIneligibleDefinitions(List<String> definitions)
void
setRoutingExpression(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:
setApplicationContext
in 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:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
-