Class WebSocketStompErrorHandler

java.lang.Object
org.springframework.web.socket.messaging.StompSubProtocolErrorHandler
com.finconsgroup.itserr.marketplace.usercommunication.dm.config.WebSocketStompErrorHandler
All Implemented Interfaces:
org.springframework.web.socket.messaging.SubProtocolErrorHandler<byte[]>

public class WebSocketStompErrorHandler extends org.springframework.web.socket.messaging.StompSubProtocolErrorHandler
Error handler for Stomp errors. It returns a suitable message for authorization related exceptions, which otherwise tend to return a generic Failed to send to ExecutorSubscribableChannel message
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.messaging.Message<byte[]>
    handleInternal(org.springframework.messaging.simp.stomp.StompHeaderAccessor errorHeaderAccessor, byte[] errorPayload, Throwable cause, org.springframework.messaging.simp.stomp.StompHeaderAccessor clientHeaderAccessor)
     

    Methods inherited from class org.springframework.web.socket.messaging.StompSubProtocolErrorHandler

    handleClientMessageProcessingError, handleErrorMessageToClient

    Methods inherited from class java.lang.Object

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

    • handleInternal

      @NonNull protected org.springframework.messaging.Message<byte[]> handleInternal(@NonNull org.springframework.messaging.simp.stomp.StompHeaderAccessor errorHeaderAccessor, @NonNull byte[] errorPayload, Throwable cause, org.springframework.messaging.simp.stomp.StompHeaderAccessor clientHeaderAccessor)
      Overrides:
      handleInternal in class org.springframework.web.socket.messaging.StompSubProtocolErrorHandler