Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-265

Add the Ability to get RequestHandlers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2-alpha1
    • HttpCore, HttpCore NIO
    • None

    Description

      I'm about to write some code in my server which tracks all of the handlers that are set. However, this code would essentially what mimics the code inside of NHttpRequestHandlerRegistry/HttpRequestHandlerRegistry or more accurately the underlying UriPatternMatcher. My request is to add a method which returns the map contained inside of the underlying UriPatternMatcher.

      Is there a particular reason a getObjects() method doesn't exist in UriPatternMatcher or getHandlers() method in NHttpRequestHandlerRegistry/HttpRequestHandlerRegistry? If the reason is simply that no one has asked for this before, I'll go ahead and submit a patch to add these methods. If there are other reasons, I'm curious as to what it is.

      Attachments

        1. HttpRequestHandlerRegistry.diff
          0.7 kB
          Bill Speirs
        2. NHttpRequestHandlerRegistry.diff
          0.6 kB
          Bill Speirs
        3. TestHttpRequestHandlerRegistry.diff
          1 kB
          Bill Speirs
        4. UriPatternMatcher.diff
          0.5 kB
          Bill Speirs

        Activity

          People

            Unassigned Unassigned
            wspeirs Bill Speirs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: