Uploaded image for project: 'FTS'
  1. FTS
  2. FTS-1426

Add getEndpoint method to Context in Easy bindings

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: fts-rest 3.10.0
    • Fix Version/s: fts-rest 3.10.1
    • Component/s: REST API
    • Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
    • Labels:
      None

      Description

      From S. Beforte

      Hi FTS3 developers

      In my code I find it useful to initialize the FTS3 Easy Client context as per
      http://fts3-docs.web.cern.ch/fts3-docs/fts-rest/docs/easy/index.html
      at the beginning and pass it around to various methods.
      but then there are places where I'd like to get back the actual server URL
      (for logging or to build the ftsmon URL), so I'd like to use the info
      stored in the context, not have another string to pass around.

      I see that this will do: context.endpoint

      But I am hesitant to use a non-documented internal member like this,
      as it could always change.
      Can you make such retrieve of information from the context object
      part of the Easy Bindings API ? Either via the above member of a method,
      as you prefer ?

       

       

        Attachments

          Activity

            People

            Assignee:
            mipatras Mihai Patrascoiu
            Reporter:
            amanzi Andrea Manzi (Inactive)
            Component Watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: