Class HttpMessageController
- java.lang.Object
-
- com.consol.citrus.http.controller.HttpMessageController
-
@Controller @RequestMapping("/*") public class HttpMessageController extends Object
Message controller implementation handling all incoming requests by forwarding to a message handler for further processing.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description HttpMessageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointAdapter
getEndpointAdapter()
Gets the endpoint adapter.HttpEndpointConfiguration
getEndpointConfiguration()
Gets the endpoint configuration.org.springframework.http.ResponseEntity<?>
getResponseCache(javax.servlet.http.HttpServletRequest request)
Gets the responseCache.int
getResponseCacheSize()
Gets 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)
void
setEndpointAdapter(EndpointAdapter endpointAdapter)
Sets the endpointAdapter.void
setEndpointConfiguration(HttpEndpointConfiguration endpointConfiguration)
Sets the endpoint configuration.void
setResponseCacheSize(int responseCacheSize)
Sets the response cache size.
-
-
-
Method Detail
-
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
public void setEndpointAdapter(EndpointAdapter endpointAdapter)
Sets the endpointAdapter.- Parameters:
endpointAdapter
- the endpointAdapter to set
-
getEndpointAdapter
public EndpointAdapter getEndpointAdapter()
Gets the endpoint adapter.- Returns:
-
getEndpointConfiguration
public HttpEndpointConfiguration getEndpointConfiguration()
Gets the endpoint configuration.- Returns:
-
setEndpointConfiguration
public void setEndpointConfiguration(HttpEndpointConfiguration endpointConfiguration)
Sets the endpoint configuration.- Parameters:
endpointConfiguration
-
-
getResponseCache
public org.springframework.http.ResponseEntity<?> getResponseCache(javax.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
-
-
-