Class LoggingSseEmitter

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
org.springframework.web.servlet.mvc.method.annotation.SseEmitter
org.hawaiiframework.logging.web.sse.LoggingSseEmitter

public class LoggingSseEmitter extends org.springframework.web.servlet.mvc.method.annotation.SseEmitter
SSE Emitter that logs what is emitted.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.web.servlet.mvc.method.annotation.SseEmitter

    org.springframework.web.servlet.mvc.method.annotation.SseEmitter.SseEventBuilder

    Nested classes/interfaces inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter

    org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter.DataWithMediaType
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoggingSseEmitter(List<org.springframework.http.converter.HttpMessageConverter<?>> converters, KibanaLogContext context)
    Constructor with converters and a context.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    send(org.springframework.web.servlet.mvc.method.annotation.SseEmitter.SseEventBuilder builder)
     

    Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.SseEmitter

    event, extendResponse, send, send, toString

    Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter

    complete, completeWithError, getTimeout, onCompletion, onTimeout, send

    Methods inherited from class java.lang.Object

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

    • LoggingSseEmitter

      public LoggingSseEmitter(List<org.springframework.http.converter.HttpMessageConverter<?>> converters, KibanaLogContext context)
      Constructor with converters and a context.
  • Method Details

    • send

      public void send(org.springframework.web.servlet.mvc.method.annotation.SseEmitter.SseEventBuilder builder) throws IOException
      Overrides:
      send in class org.springframework.web.servlet.mvc.method.annotation.SseEmitter
      Throws:
      IOException
    • onError

      public void onError(Consumer<Throwable> callback)
      Overrides:
      onError in class org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter