Uploaded image for project: 'Apache AWF'
  1. Apache AWF
  2. AWF-177

Create an Interface between the API user and deft internal plumbing system

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None

      Description

      here a patch for creating two interface : HttpResponse and HttpRequest (implementation are moved to HttpResponseImpl and HttpRequestImpl).
      We expose to the deft user only those interfaces (with the javadoc as API documentation) and hide all the parsing/accumulation process.

      The idea is :

      • hide the complexity to the user, provide clear API with it's doc
      • prevent user to call unwanted methods
      • being able to change the inner implementatio without affecting user code

        Attachments

        1. HttpResponseImpl.java
          11 kB
          Julien Vermillard
        2. HttpRequestImpl.java
          12 kB
          Julien Vermillard
        3. HttpRequestImpl.java
          12 kB
          Julien Vermillard
        4. api.patch
          177 kB
          Julien Vermillard

          Activity

            People

            • Assignee:
              jmeehan Johnathan Meehan
              Reporter:
              vrm Julien Vermillard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: