Class GremlinWebSocketHandler

  • All Implemented Interfaces:
    org.springframework.web.socket.WebSocketHandler

    public class GremlinWebSocketHandler
    extends org.springframework.web.socket.handler.BinaryWebSocketHandler
    Websocket handler for accepting and responding to Gremlin queries. This enables an endpoint that acts like a Gremlin server which will run requests on the current Gaffer graph via the GafferPop library.
    • Constructor Summary

      Constructors 
      Constructor Description
      GremlinWebSocketHandler​(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource g, AbstractUserFactory userFactory, Long requestTimeout)
      Constructor
    • Method Summary

      • Methods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler

        afterConnectionClosed, afterConnectionEstablished, handleMessage, handleTransportError, supportsPartialMessages
    • Constructor Detail

      • GremlinWebSocketHandler

        public GremlinWebSocketHandler​(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource g,
                                       AbstractUserFactory userFactory,
                                       Long requestTimeout)
        Constructor
        Parameters:
        g - The graph traversal source
        userFactory - The user factory
        requestTimeout - The timeout for gremlin requests