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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: