Package uk.gov.gchq.gaffer.rest.handler
Class GremlinWebSocketHandler
- java.lang.Object
-
- org.springframework.web.socket.handler.AbstractWebSocketHandler
-
- org.springframework.web.socket.handler.BinaryWebSocketHandler
-
- uk.gov.gchq.gaffer.rest.handler.GremlinWebSocketHandler
-
- All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler
public class GremlinWebSocketHandler extends org.springframework.web.socket.handler.BinaryWebSocketHandlerWebsocket 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(GafferPopGraph graph, AbstractUserFactory userFactory, Long requestTimeout)Constructor
-
-
-
Constructor Detail
-
GremlinWebSocketHandler
public GremlinWebSocketHandler(GafferPopGraph graph, AbstractUserFactory userFactory, Long requestTimeout)
Constructor- Parameters:
graph- TheGafferPopGraphthis is initialised to use the correct underlying Gaffer graph.userFactory- The user factory.requestTimeout- The timeout for gremlin requests.
-
-