Class UpdateProcessRemoteBase

  • All Implemented Interfaces:
    UpdateExec, UpdateProcessor
    Direct Known Subclasses:
    UpdateProcessRemote, UpdateProcessRemoteForm

    @Deprecated
    public abstract class UpdateProcessRemoteBase
    extends java.lang.Object
    implements UpdateExec
    Deprecated.
    Use UpdateExecutionHTTP created with UpdateExecutionHTTPBuilder.
    Abstract base class for update processors that perform remote updates over HTTP
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Symbol HTTP_CONTEXT
      Deprecated.
      Symbol used to set a HttpContext which will be used for HTTP requests
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addDefaultGraph​(java.lang.String defaultGraph)
      Deprecated.
      Adds a default graph
      void addNamedGraph​(java.lang.String namedGraph)
      Deprecated.
      Adds a named graph
      void addParam​(java.lang.String field, java.lang.String value)
      Deprecated.
      Adds a custom parameter to the request
      org.apache.http.client.HttpClient getClient()
      Deprecated.
      Gets the client that has been set (if any)
      Context getContext()
      Deprecated.
      The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph).
      DatasetGraph getDatasetGraph()
      Deprecated.
      The dataset against which the query will execute.
      java.lang.String getEndpoint()
      Deprecated.
      Gets the endpoint
      org.apache.http.protocol.HttpContext getHttpContext()
      Deprecated.
      Convenience method to get the HttpContext
      Params getParams()
      Deprecated.
      Gets the parameters for the execution
      UpdateRequest getUpdateRequest()
      Deprecated.
      Gets the update request
      java.lang.String getUpdateString()
      Deprecated.
      Gets the generated HTTP query string portion of the endpoint URL if applicable
      void setClient​(org.apache.http.client.HttpClient client)
      Deprecated.
      Sets the client to use
      void setDefaultGraphs​(java.util.List<java.lang.String> defaultGraphs)
      Deprecated.
      Sets the default graphs
      void setHttpContext​(org.apache.http.protocol.HttpContext httpContext)
      Deprecated.
      Convenience method to set the HttpContext
      void setNamedGraphs​(java.util.List<java.lang.String> namedGraphs)
      Deprecated.
      Sets the named graphs
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HTTP_CONTEXT

        public static final Symbol HTTP_CONTEXT
        Deprecated.
        Symbol used to set a HttpContext which will be used for HTTP requests
    • Constructor Detail

      • UpdateProcessRemoteBase

        public UpdateProcessRemoteBase​(UpdateRequest request,
                                       java.lang.String endpoint,
                                       Context context)
        Deprecated.
        Creates a new remote update processor
        Parameters:
        request - Update request
        endpoint - Update endpoint
        context - Context
    • Method Detail

      • getDatasetGraph

        public DatasetGraph getDatasetGraph()
        Deprecated.
        Description copied from interface: UpdateProcessor
        The dataset against which the query will execute. May be null, implying the there isn't a local GraphStore target for this UpdateProcessor.
        Specified by:
        getDatasetGraph in interface UpdateProcessor
      • getEndpoint

        public java.lang.String getEndpoint()
        Deprecated.
        Gets the endpoint
        Returns:
        Endpoint URI
      • getUpdateString

        public java.lang.String getUpdateString()
        Deprecated.
        Gets the generated HTTP query string portion of the endpoint URL if applicable

        Generated string will not include leading ? so that consuming code can decide whether to add this themselves since the generated query string may be being used in addition to an existing query string.

        Returns:
        Generated query string
      • getParams

        public Params getParams()
        Deprecated.
        Gets the parameters for the execution
        Returns:
        Parameters
      • getUpdateRequest

        public UpdateRequest getUpdateRequest()
        Deprecated.
        Gets the update request
        Returns:
        Update request
      • addDefaultGraph

        public void addDefaultGraph​(java.lang.String defaultGraph)
        Deprecated.
        Adds a default graph
        Parameters:
        defaultGraph - Default Graph URI
      • addNamedGraph

        public void addNamedGraph​(java.lang.String namedGraph)
        Deprecated.
        Adds a named graph
        Parameters:
        namedGraph - Named Graph URi
      • addParam

        public void addParam​(java.lang.String field,
                             java.lang.String value)
        Deprecated.
        Adds a custom parameter to the request
        Parameters:
        field - Field
        value - Value
      • setDefaultGraphs

        public void setDefaultGraphs​(java.util.List<java.lang.String> defaultGraphs)
        Deprecated.
        Sets the default graphs
        Parameters:
        defaultGraphs - Default Graphs
      • setNamedGraphs

        public void setNamedGraphs​(java.util.List<java.lang.String> namedGraphs)
        Deprecated.
        Sets the named graphs
        Parameters:
        namedGraphs - Named Graphs
      • setHttpContext

        public void setHttpContext​(org.apache.http.protocol.HttpContext httpContext)
        Deprecated.
        Convenience method to set the HttpContext
        Parameters:
        httpContext - HTTP Context
      • getHttpContext

        public org.apache.http.protocol.HttpContext getHttpContext()
        Deprecated.
        Convenience method to get the HttpContext
        Returns:
        HttpContext
      • getContext

        public Context getContext()
        Deprecated.
        Description copied from interface: UpdateProcessor
        The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph). Keys should be URIs as strings. May be null (this implementation does not provide any configuration).
        Specified by:
        getContext in interface UpdateProcessor
      • setClient

        public void setClient​(org.apache.http.client.HttpClient client)
        Deprecated.
        Sets the client to use

        Note that you can globally set an client via HttpOp1.setDefaultHttpClient(HttpClient) to avoid the need to set client on a per-request basis

        Parameters:
        client - HTTP client
      • getClient

        public org.apache.http.client.HttpClient getClient()
        Deprecated.
        Gets the client that has been set (if any)

        If no client is used then the default client will be used, this can be configured via the HttpOp1.setDefaultHttpClient(HttpClient) method.

        Returns:
        HTTP client if set, null otherwise