Class StompSessionHandlerAdapter
java.lang.Object
org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter
- All Implemented Interfaces:
- StompFrameHandler,- StompSessionHandler
Abstract adapter class for 
StompSessionHandler with mostly empty
 implementation methods except for getPayloadType(org.springframework.messaging.simp.stomp.StompHeaders) which returns String
 as the default Object type expected for STOMP ERROR frame payloads.- Since:
- 4.2
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterConnected(StompSession session, StompHeaders connectedHeaders) This implementation is empty.getPayloadType(StompHeaders headers) This implementation returns String as the expected payload type for STOMP ERROR frames.voidhandleException(StompSession session, StompCommand command, StompHeaders headers, byte[] payload, Throwable exception) This implementation is empty.voidhandleFrame(StompHeaders headers, Object payload) This implementation is empty.voidhandleTransportError(StompSession session, Throwable exception) This implementation is empty.
- 
Constructor Details- 
StompSessionHandlerAdapterpublic StompSessionHandlerAdapter()
 
- 
- 
Method Details- 
getPayloadTypeThis implementation returns String as the expected payload type for STOMP ERROR frames.- Specified by:
- getPayloadTypein interface- StompFrameHandler
- Parameters:
- headers- the headers of a message
 
- 
handleFrameThis implementation is empty.- Specified by:
- handleFramein interface- StompFrameHandler
- Parameters:
- headers- the headers of the frame
- payload- the payload, or- nullif there was no payload
 
- 
afterConnectedThis implementation is empty.- Specified by:
- afterConnectedin interface- StompSessionHandler
- Parameters:
- session- the client STOMP session
- connectedHeaders- the STOMP CONNECTED frame headers
 
- 
handleExceptionpublic void handleException(StompSession session, @Nullable StompCommand command, StompHeaders headers, byte[] payload, Throwable exception) This implementation is empty.- Specified by:
- handleExceptionin interface- StompSessionHandler
- Parameters:
- session- the client STOMP session
- command- the STOMP command of the frame
- headers- the headers
- payload- the raw payload
- exception- the exception
 
- 
handleTransportErrorThis implementation is empty.- Specified by:
- handleTransportErrorin interface- StompSessionHandler
- Parameters:
- session- the client STOMP session
- exception- the exception that occurred
 
 
-