
com.centurylink.mdw.common.service.WebSocketConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdw-common Show documentation
Show all versions of mdw-common Show documentation
MDW is a microservices based workflow framework
package com.centurylink.mdw.common.service;
import com.centurylink.mdw.app.ApplicationContext;
import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;
import java.util.ArrayList;
import java.util.List;
public class WebSocketConfig extends ServerEndpointConfig.Configurator {
@Override
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
List header = new ArrayList<>();
header.add(ApplicationContext.getHostname());
response.getHeaders().put("mdw-hostname", header);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy