Example usage for org.springframework.web.socket WebSocketHttpHeaders put

List of usage examples for org.springframework.web.socket WebSocketHttpHeaders put

Introduction

In this page you can find the example usage for org.springframework.web.socket WebSocketHttpHeaders put.

Prototype

@Override
    public List<String> put(String key, List<String> value) 

Source Link

Usage

From source file:com.github.mthizo247.cloud.netflix.zuul.web.authentication.LoginCookieHeadersCallback.java

@Override
protected void applyHeadersInternal(WebSocketSession userAgentSession, WebSocketHttpHeaders headers) {
    List<String> sessionCookies = userAgentSession.getHandshakeHeaders().get(HttpHeaders.COOKIE);
    headers.put(HttpHeaders.COOKIE, sessionCookies);
    if (logger.isDebugEnabled()) {
        logger.debug("Added cookie authentication header to web sockets http headers");
    }//from www.  j  a v a2s  .  c o  m
}