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 String
GRAPH_CONTROLLER_BEAN_NAME
Represents the bean name for the defaultIntegrationGraphController
.static String
GRAPH_CONTROLLER_DEFAULT_PATH
Represents the default request mapping path for theIntegrationGraphController
.static String
GRAPH_CONTROLLER_PATH_PROPERTY
Represents the environment property for theIntegrationGraphController
request mapping path.static String
HANDLER_MAPPING_BEAN_NAME
The name for the infrastructureIntegrationRequestMappingHandlerMapping
bean.static boolean
WEB_FLUX_PRESENT
Aboolean
flag to indicate if theorg.springframework.web.reactive.DispatcherHandler
is present in the CLASSPATH to allow the registration of Integration server reactive components, e.g.static boolean
WEB_MVC_PRESENT
Aboolean
flag to indicate if theorg.springframework.web.servlet.DispatcherServlet
is present in the CLASSPATH to allow the registration of Integration server components, e.g. -
Method Summary
Modifier and Type Method Description static RequestMapping
convertRequestMappingToAnnotation(RequestMapping requestMapping)
Converts a providedRequestMapping
to the Spring WebRequestMapping
annotation.
-
Field Details
-
WEB_MVC_PRESENT
public static final boolean WEB_MVC_PRESENTAboolean
flag to indicate if theorg.springframework.web.servlet.DispatcherServlet
is present in the CLASSPATH to allow the registration of Integration server components, e.g.IntegrationGraphController
. -
WEB_FLUX_PRESENT
public static final boolean WEB_FLUX_PRESENTAboolean
flag to indicate if theorg.springframework.web.reactive.DispatcherHandler
is present in the CLASSPATH to allow the registration of Integration server reactive components, e.g.IntegrationGraphController
. -
HANDLER_MAPPING_BEAN_NAME
The name for the infrastructureIntegrationRequestMappingHandlerMapping
bean.- See Also:
- Constant Field Values
-
GRAPH_CONTROLLER_PATH_PROPERTY
Represents the environment property for theIntegrationGraphController
request 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 providedRequestMapping
to the Spring WebRequestMapping
annotation.- Parameters:
requestMapping
- theRequestMapping
to convert.- Returns:
- the
RequestMapping
annotation. - Since:
- 5.0
-