Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1604

Add request hook for HTTP query execution

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.8.0
    • Jena 3.9.0
    • ARQ, Jena

    Description

      I am using Jena's QueryEngineHTTP for queries and RemoteUpdateRequest for updates. I would like to send a custom header that will differ on each request. Our database, Allegrograph, allows us to pass down custom headers while querying or updating in order to store that information in access logs. For each SPARQL request we want to send down unique request markers and usernames in order to be able to trace from a UI click to backend calls to queries that were performed in the graph. I did some digging around and it seems like it's not possible. Using default headers when configuring Apache's Http Client wouldn't work in this case. The suggestion [~andy.seaborne] made was to create a request hook in HttpOp where we could add additional headers as necessary. 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ajs6f Adam Soroka
            nirajpatel Niraj Patel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment