Class HttpContextUtils
java.lang.Object
org.springframework.integration.http.config.HttpContextUtils
public final class HttpContextUtils extends Object
Utility class for accessing HTTP integration components
from the
BeanFactory.- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
Fields Modifier and Type Field Description static StringGRAPH_CONTROLLER_BEAN_NAMERepresents the bean name for the defaultIntegrationGraphController.static StringGRAPH_CONTROLLER_DEFAULT_PATHRepresents the default request mapping path for theIntegrationGraphController.static StringGRAPH_CONTROLLER_PATH_PROPERTYRepresents the environment property for theIntegrationGraphControllerrequest mapping path.static StringHANDLER_MAPPING_BEAN_NAMEThe name for the infrastructureIntegrationRequestMappingHandlerMappingbean.static booleanWEB_FLUX_PRESENTAbooleanflag to indicate if theorg.springframework.web.reactive.DispatcherHandleris present in the CLASSPATH to allow the registration of Integration server reactive components, e.g.static booleanWEB_MVC_PRESENTAbooleanflag to indicate if theorg.springframework.web.servlet.DispatcherServletis present in the CLASSPATH to allow the registration of Integration server components, e.g. -
Method Summary
Modifier and Type Method Description static RequestMappingconvertRequestMappingToAnnotation(RequestMapping requestMapping)Converts a providedRequestMappingto the Spring WebRequestMappingannotation.
-
Field Details
-
WEB_MVC_PRESENT
public static final boolean WEB_MVC_PRESENTAbooleanflag to indicate if theorg.springframework.web.servlet.DispatcherServletis present in the CLASSPATH to allow the registration of Integration server components, e.g.IntegrationGraphController. -
WEB_FLUX_PRESENT
public static final boolean WEB_FLUX_PRESENTAbooleanflag to indicate if theorg.springframework.web.reactive.DispatcherHandleris present in the CLASSPATH to allow the registration of Integration server reactive components, e.g.IntegrationGraphController. -
HANDLER_MAPPING_BEAN_NAME
The name for the infrastructureIntegrationRequestMappingHandlerMappingbean.- See Also:
- Constant Field Values
-
GRAPH_CONTROLLER_PATH_PROPERTY
Represents the environment property for theIntegrationGraphControllerrequest mapping path.- See Also:
- Constant Field Values
-
GRAPH_CONTROLLER_DEFAULT_PATH
Represents the default request mapping path for theIntegrationGraphController.- See Also:
- Constant Field Values
-
GRAPH_CONTROLLER_BEAN_NAME
Represents the bean name for the defaultIntegrationGraphController.- See Also:
- Constant Field Values
-
-
Method Details
-
convertRequestMappingToAnnotation
Converts a providedRequestMappingto the Spring WebRequestMappingannotation.- Parameters:
requestMapping- theRequestMappingto convert.- Returns:
- the
RequestMappingannotation. - Since:
- 5.0
-