Class HttpMessageController
java.lang.Object
org.citrusframework.http.controller.HttpMessageController
Message controller implementation handling all incoming requests by forwarding to a message
handler for further processing.
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the endpoint adapter.Gets the endpoint configuration.org.springframework.http.ResponseEntity<?>getResponseCache(jakarta.servlet.http.HttpServletRequest request) Gets the responseCache.intGets the response cache size.org.springframework.http.ResponseEntity<?>handleDeleteRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handleGetRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handleHeadRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handleOptionsRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handlePatchRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handlePostRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handlePutRequest(org.springframework.http.HttpEntity<Object> requestEntity) org.springframework.http.ResponseEntity<?>handleTraceRequest(org.springframework.http.HttpEntity<Object> requestEntity) voidsetEndpointAdapter(EndpointAdapter endpointAdapter) Sets the endpointAdapter.voidsetEndpointConfiguration(HttpEndpointConfiguration endpointConfiguration) Sets the endpoint configuration.voidsetResponseCacheSize(int responseCacheSize) Sets the response cache size.
-
Constructor Details
-
HttpMessageController
public HttpMessageController()
-
-
Method Details
-
handleGetRequest
@RequestMapping(value="**", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<?> handleGetRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handlePostRequest
@RequestMapping(value="**", method=POST) @ResponseBody public org.springframework.http.ResponseEntity<?> handlePostRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handlePutRequest
@RequestMapping(value="**", method=PUT) @ResponseBody public org.springframework.http.ResponseEntity<?> handlePutRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handleDeleteRequest
@RequestMapping(value="**", method=DELETE) @ResponseBody public org.springframework.http.ResponseEntity<?> handleDeleteRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handleOptionsRequest
@RequestMapping(value="**", method=OPTIONS) @ResponseBody public org.springframework.http.ResponseEntity<?> handleOptionsRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handleHeadRequest
@RequestMapping(value="**", method=HEAD) @ResponseBody public org.springframework.http.ResponseEntity<?> handleHeadRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handleTraceRequest
@RequestMapping(value="**", method=TRACE) @ResponseBody public org.springframework.http.ResponseEntity<?> handleTraceRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
handlePatchRequest
@RequestMapping(value="**", method=PATCH) @ResponseBody public org.springframework.http.ResponseEntity<?> handlePatchRequest(org.springframework.http.HttpEntity<Object> requestEntity) -
setEndpointAdapter
Sets the endpointAdapter.- Parameters:
endpointAdapter- the endpointAdapter to set
-
getEndpointAdapter
Gets the endpoint adapter.- Returns:
-
getEndpointConfiguration
Gets the endpoint configuration.- Returns:
-
setEndpointConfiguration
Sets the endpoint configuration.- Parameters:
endpointConfiguration-
-
getResponseCache
public org.springframework.http.ResponseEntity<?> getResponseCache(jakarta.servlet.http.HttpServletRequest request) Gets the responseCache.- Returns:
- the responseCache the responseCache to get.
-
getResponseCacheSize
public int getResponseCacheSize()Gets the response cache size.- Returns:
-
setResponseCacheSize
public void setResponseCacheSize(int responseCacheSize) Sets the response cache size.- Parameters:
responseCacheSize-
-