All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zhengframework.web.BasicServerEndpointConfig Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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<>();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy