Class GraphConnectionHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class GraphConnectionHandler
    extends AbstractVersionAPIHandler
    implements java.lang.AutoCloseable
    Basic connection to the HIRO Graph without any authentication. Can be used as root connection for several TokenAPIHandlers, i.e. a FixedTokenApiHandler with a token for each user that shall all use the same connection. Contains CookieHandler, the versionMap and the httpConnection.
    • Constructor Detail

      • GraphConnectionHandler

        protected GraphConnectionHandler​(GraphConnectionHandler.Conf<?> builder)
        Constructor
        Parameters:
        builder - The builder to use.
    • Method Detail

      • addToHeaders

        public void addToHeaders​(HttpHeaderMap headers)
        Override this to add authentication tokens. This only returns default headers since tokens are not available here.
        Specified by:
        addToHeaders in class AbstractAPIHandler
        Parameters:
        headers - Map of headers with initial values.
      • close

        public void close()
        Close the underlying httpClientHandler.
        Specified by:
        close in interface java.lang.AutoCloseable