Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-728

Wrapper for httpclient-3.1 MultipartRequestEntity

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 4.0 Alpha 2
    • None
    • Contrib
    • None

    Description

      A very simple wrapper is attached here. This one offcourse requires the httpclient-3.1.jar in addition to httpclient-4 and httpcore.

      There's an issue passing parameters from httpclient-4 HttpMethod.getProperties() (HttpParams from 4) to httpclient-3.1 and MultipartRequestEntity's constructor which takes HttpMethodParams (from 3.1). I was thinking about doing an iteration of the parameters, but as far as I could understand HttpMethodParams (from 3.1) is a static configuration, thus it's alot of typing work and research to map httpclient-4s dynamic properties to httpclient-3.1 configuration class. Furthermore I didn't find any way of iterating the the parameters (at a glance). So, I gave that one up.

      In conclusion, MultipartRequestEntity is stuck with the default parameters.

      It did it's job for me. That was pretty basic stuff, though.

      Attachments

        1. MultipartEntityWrapper.java
          4 kB
          Magnus Olstad Hansen

        Activity

          People

            Unassigned Unassigned
            magge Magnus Olstad Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: