SimplePostTool: move getProperty(type) out of postData()
--------------------------------------------------------
Key: SOLR-3012
URL: https://issues.apache.org/jira/browse/SOLR-3012
Project: Solr
Issue Type: Improvement
Reporter: Koji Sekiguchi
Priority: Trivial
Now applications that use SimplePostTool can set Content-type, but it has to
use type system property.
{code}
public void postData(InputStream data, Integer length, OutputStream output) {
final String type = System.getProperty("type", DEFAULT_DATA_TYPE);
:
}
{code}
If the getProperty() is moved to main() and type can be set via an argument of
the method, the client applications can be flexible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]