Spaces:
Sleeping
Sleeping
Commit
·
f5b7aab
1
Parent(s):
d356c9c
changes
Browse files
src/main/java/ai/giskard/learnspringwebsockets/LearnSpringWebsocketsApplication.java
CHANGED
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Component;
|
|
10 |
import org.springframework.web.filter.OncePerRequestFilter;
|
11 |
|
12 |
import java.io.IOException;
|
|
|
13 |
import java.util.Enumeration;
|
14 |
|
15 |
@SpringBootApplication
|
@@ -29,7 +30,8 @@ public class LearnSpringWebsocketsApplication {
|
|
29 |
System.out.println("!!!! HEADERS");
|
30 |
if (headerNames != null) {
|
31 |
while (headerNames.hasMoreElements()) {
|
32 |
-
|
|
|
33 |
}
|
34 |
}
|
35 |
filterChain.doFilter(request, response);
|
|
|
10 |
import org.springframework.web.filter.OncePerRequestFilter;
|
11 |
|
12 |
import java.io.IOException;
|
13 |
+
import java.text.MessageFormat;
|
14 |
import java.util.Enumeration;
|
15 |
|
16 |
@SpringBootApplication
|
|
|
30 |
System.out.println("!!!! HEADERS");
|
31 |
if (headerNames != null) {
|
32 |
while (headerNames.hasMoreElements()) {
|
33 |
+
String name = headerNames.nextElement();
|
34 |
+
System.out.println(MessageFormat.format("Header:{0} -- {1}", name, request.getHeader(name)));
|
35 |
}
|
36 |
}
|
37 |
filterChain.doFilter(request, response);
|