[
https://issues.apache.org/jira/browse/TIKA-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14343765#comment-14343765
]
Tim Allison commented on TIKA-964:
----------------------------------
As a newbie to JAX-RS a few months ago(?), I was initially intimidated by
having to figure out a new framework. I was quickly won over, though, with its
elegance and simplicity. If you look at the unit tests for tika-server (esp.
TikaResourceTest), you can get a sense of the tiny amount of code required to
get going, e.g.:
{noformat}
Response response = WebClient.create(endPoint + TIKA_PATH)
.accept("text/xml")
.put(ClassLoader.getSystemResourceAsStream("test_recursive_embedded.docx"));
if (response.getStatus() == 200) {
String responseMsg = getStringFromInputStream((InputStream) response
.getEntity());
System.out.println(responseMsg);
}
{noformat}
Or take a look here for curl commands see our
[wiki|http://wiki.apache.org/tika/TikaJAXRS]
> Ability to specify bind address
> -------------------------------
>
> Key: TIKA-964
> URL: https://issues.apache.org/jira/browse/TIKA-964
> Project: Tika
> Issue Type: Improvement
> Components: cli
> Affects Versions: 1.2
> Reporter: Vitaliy Filippov
> Attachments: tika-964.diff
>
>
> Now tika-app listens on all network interfaces, which isn't much secure.
> It would be good to be able to specify the bind address, like:
> java -jar tika-app.jar -p 127.0.0.1:9998
> I'll attach a patch with next comment.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)