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

graphql.kickstart.servlet.apollo.ApolloWebSocketSubscriptionSession Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package graphql.kickstart.servlet.apollo;

import graphql.kickstart.execution.subscriptions.GraphQLSubscriptionMapper;
import graphql.kickstart.execution.subscriptions.apollo.ApolloSubscriptionSession;
import graphql.kickstart.servlet.subscriptions.WebSocketSubscriptionSession;
import java.util.Map;
import javax.websocket.Session;

public class ApolloWebSocketSubscriptionSession extends ApolloSubscriptionSession {

  private final WebSocketSubscriptionSession webSocketSubscriptionSession;

  public ApolloWebSocketSubscriptionSession(GraphQLSubscriptionMapper mapper, Session session) {
    super(mapper);
    webSocketSubscriptionSession = new WebSocketSubscriptionSession(mapper, session);
  }

  @Override
  public boolean isOpen() {
    return webSocketSubscriptionSession.isOpen();
  }

  @Override
  public Map getUserProperties() {
    return webSocketSubscriptionSession.getUserProperties();
  }

  @Override
  public String getId() {
    return webSocketSubscriptionSession.getId();
  }

  @Override
  public Session unwrap() {
    return webSocketSubscriptionSession.unwrap();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy