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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment