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

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

Introduction

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

Prototype

@Override
    public boolean containsKey(Object key) 

Source Link

Usage

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

@Override
protected boolean shouldApplyHeaders(WebSocketSession userAgentSession, WebSocketHttpHeaders headers) {
    return !headers.containsKey(HttpHeaders.COOKIE)
            && userAgentSession.getHandshakeHeaders().containsKey(HttpHeaders.COOKIE);
}