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.SseEventBuilderNested classes/interfaces inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter.DataWithMediaType -
Constructor Summary
ConstructorsConstructorDescriptionLoggingSseEmitter(List<org.springframework.http.converter.HttpMessageConverter<?>> converters, KibanaLogContext context) Constructor withconvertersand acontext. -
Method Summary
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.SseEmitter
event, extendResponse, send, send, toStringMethods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
complete, completeWithError, getTimeout, onCompletion, onTimeout, send
-
Constructor Details
-
LoggingSseEmitter
public LoggingSseEmitter(List<org.springframework.http.converter.HttpMessageConverter<?>> converters, KibanaLogContext context) Constructor withconvertersand acontext.
-
-
Method Details
-
send
public void send(org.springframework.web.servlet.mvc.method.annotation.SseEmitter.SseEventBuilder builder) throws IOException - Overrides:
sendin classorg.springframework.web.servlet.mvc.method.annotation.SseEmitter- Throws:
IOException
-
onError
- Overrides:
onErrorin classorg.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
-