Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3012

SimplePostTool: move getProperty(type) out of postData()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Now applications that use SimplePostTool can set Content-type, but it has to use type system property.

      public void postData(InputStream data, Integer length, OutputStream output) {
              
        final String type = System.getProperty("type", DEFAULT_DATA_TYPE);
                :
      }
      

      If the getProperty() is moved to main() and type can be set via an argument of the method, the client applications can be flexible.

        Attachments

        1. SOLR-3012.patch
          5 kB
          Koji Sekiguchi
        2. SOLR-3012.patch
          7 kB
          Koji Sekiguchi

          Activity

            People

            • Assignee:
              koji Koji Sekiguchi
              Reporter:
              koji Koji Sekiguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: