com.github.zhengframework.web.BasicServerEndpointConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zheng-web Show documentation
Show all versions of zheng-web Show documentation
zheng framework module: web server
package com.github.zhengframework.web;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.websocket.Decoder;
import javax.websocket.Encoder;
import javax.websocket.Extension;
import javax.websocket.server.ServerEndpointConfig;
public class BasicServerEndpointConfig implements ServerEndpointConfig {
@Inject
private GuiceServerEndpointConfigurator configurator;
private String path;
private Class> endpointClass;
public BasicServerEndpointConfig(Class> endpointClass, String path) {
this.endpointClass = endpointClass;
this.path = path;
}
@Override
public Class> getEndpointClass() {
return endpointClass;
}
@Override
public String getPath() {
return path;
}
@Override
public List getSubprotocols() {
return Collections.emptyList();
}
@Override
public List getExtensions() {
return Collections.emptyList();
}
@Override
public Configurator getConfigurator() {
return configurator;
}
@Override
public List> getEncoders() {
return Collections.emptyList();
}
@Override
public List> getDecoders() {
return Collections.emptyList();
}
@Override
public Map getUserProperties() {
return new HashMap<>();
}
}