Class EventEndpoint

java.lang.Object
io.naraway.janitor.endpoint.EventEndpoint

@RestController
@RequestMapping("/standalone/event")
@Conditional(LocalModeCondition.class)
public class EventEndpoint
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    EventEndpoint​(org.springframework.context.ApplicationEventPublisher eventPublisher)  
  • Method Summary

    Modifier and Type Method Description
    void fireEvent​(java.lang.String eventType, java.lang.String eventJson)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventEndpoint

      public EventEndpoint​(org.springframework.context.ApplicationEventPublisher eventPublisher)
  • Method Details

    • fireEvent

      @PostMapping(value={"","/"}, headers="command=FireEvent") public void fireEvent​(@RequestHeader("eventType") java.lang.String eventType, @RequestBody java.lang.String eventJson)