From b6fd2d2c931c43509669a4404e36649b95b3e6f9 Mon Sep 17 00:00:00 2001 From: TaeHoon0 Date: Tue, 23 Jul 2024 23:33:24 +0900 Subject: [PATCH] [#39] test : stomp header test --- .../com/example/CatchStudy/global/config/StompHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/example/CatchStudy/global/config/StompHandler.java b/src/main/java/com/example/CatchStudy/global/config/StompHandler.java index ec7804a..69b6e54 100644 --- a/src/main/java/com/example/CatchStudy/global/config/StompHandler.java +++ b/src/main/java/com/example/CatchStudy/global/config/StompHandler.java @@ -28,6 +28,9 @@ public class StompHandler implements ChannelInterceptor { public Message preSend(Message message, MessageChannel channel) { StompHeaderAccessor accessor = StompHeaderAccessor.wrap(message); String accessToken = ""; + + System.out.println("-------------accessor : " + accessor); + System.out.println("--------accessor header : " + accessor.getNativeHeader("Authorization")); // 연결 요청에 대해 실행 if(accessor.getCommand() == StompCommand.CONNECT) { accessToken = accessor.getFirstNativeHeader("Authorization");