Example usage for javax.websocket HandshakeResponse getHeaders

List of usage examples for javax.websocket HandshakeResponse getHeaders

Introduction

In this page you can find the example usage for javax.websocket HandshakeResponse getHeaders.

Prototype

Map<String, List<String>> getHeaders();

Source Link

Usage

From source file:org.sample.client.MyConfigurator.java

@Override
public void afterResponse(HandshakeResponse response) {
    System.out.println("afterResponse:");
    for (String h : response.getHeaders().keySet()) {
        for (String k : response.getHeaders().get(h)) {
            System.out.println("Header: " + h + ", " + k);
        }/*  www  .  j a v  a  2  s  .  c  om*/
    }
}