Tika JAXRS Service exposes "tika" resource to return plain-text extracted from uploaded file (via http PUT). An additional resource ("tikaxhtml" perhaps?) should be developed to return the xhtml output of a similarly PUT file.
Obviously, all the dependent classes/methods exist, as they are exposed via the CLI. Just need to leverage these to return the xhtml output.
This resource should set the return/output header appropriately.