Class AbstractHTTPQuery

All Implemented Interfaces:
Operation, Query
Direct Known Subclasses:
HTTPBooleanQuery, HTTPGraphQuery, HTTPTupleQuery, SPARQLBooleanQuery, SPARQLGraphQuery, SPARQLTupleQuery

public abstract class AbstractHTTPQuery extends AbstractQuery
Base class for any Query operation over HTTP.
Author:
Andreas Schwarte
  • Field Details Link icon

    • queryLanguage Link icon

      protected final QueryLanguage queryLanguage
    • queryString Link icon

      protected final String queryString
    • baseURI Link icon

      protected final String baseURI
  • Constructor Details Link icon

  • Method Details Link icon

    • getHttpClient Link icon

      protected SPARQLProtocolSession getHttpClient()
      Returns:
      Returns the SPARQLProtocolSession to be used for all HTTP based interaction
    • getBindingsArray Link icon

      public Binding[] getBindingsArray()
    • setMaxExecutionTime Link icon

      public void setMaxExecutionTime(int maxExecutionTimeSeconds)
      Description copied from interface: Operation
      Specifies the maximum time that an operation is allowed to run. The operation will be interrupted when it exceeds the time limit. Any consecutive requests to fetch query results will result in QueryInterruptedExceptions or UpdateExecutionExceptions (depending on whether the operation is a query or an update).
      Specified by:
      setMaxExecutionTime in interface Operation
      Overrides:
      setMaxExecutionTime in class AbstractOperation
      Parameters:
      maxExecutionTimeSeconds - The maximum query time, measured in seconds. A negative or zero value indicates an unlimited execution time (which is the default).
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object