Class EventsController
java.lang.Object
de.hybris.eventtracking.ws.controllers.rest.EventsController
@Controller("defaultEventsController")
@RequestMapping("/events")
public class EventsController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionEventsController(org.springframework.integration.channel.QueueChannel rawTrackingEventsChannel, RawEventEnricher rawEventEnricher) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractBody(javax.servlet.http.HttpServletRequest request) protected voidforwardForProcessing(String payload) protected org.springframework.http.ResponseEntity<String>ok()org.springframework.http.ResponseEntity<String>trackEvent(javax.servlet.http.HttpServletRequest request) protected voidwithCorsHeaders(org.springframework.http.HttpHeaders headers)
-
Constructor Details
-
EventsController
public EventsController(org.springframework.integration.channel.QueueChannel rawTrackingEventsChannel, RawEventEnricher rawEventEnricher)
-
-
Method Details
-
trackEvent
@RequestMapping(method=POST, consumes="application/json") public org.springframework.http.ResponseEntity<String> trackEvent(javax.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-
extractBody
- Throws:
IOException
-
forwardForProcessing
-
ok
-
withCorsHeaders
protected void withCorsHeaders(org.springframework.http.HttpHeaders headers)
-