[
https://issues.apache.org/jira/browse/ACCUMULO-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232465#comment-14232465
]
Dave Marion commented on ACCUMULO-3005:
---------------------------------------
I've only used Jackson for JSON support. Not sure if is supports XML. On my
project, we return JAX-B objects from all of our JAX-RS endpoints. We have
providers for XML, JSON, HTML, and even Protobuf (via protostuff) mapped to
different MediaTypes. The HTTP request will/should have an Accept header and
the JAX-RS engine will match the provider with the MediaType, and use that
Provider to serialize the object. We also put our JAX-B objects in a separate
Client jar for those users that only want to use XML, JSON, etc as the
transport serialization and then deserialize back to POJOs.
> Convert the monitor into a real REST server
> -------------------------------------------
>
> Key: ACCUMULO-3005
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3005
> Project: Accumulo
> Issue Type: Sub-task
> Components: monitor
> Reporter: Josh Elser
> Assignee: Josh Elser
> Fix For: 1.7.0
>
> Attachments:
> 0001-ACCUMULO-3005-Initial-round-of-changes-for-a-proper-.patch
>
>
> The monitor works well for what it does, but it's very much so cobbled
> together. HTML is hand generated. Static state is used liberally which makes
> testing near impossible. View and controller logic are tightly intertwined
> which also adds to the testability problem.
> I've been working on porting the functionality from the existing monitor to a
> proper rest service using
> [dropwizard|https://dropwizard.github.io/dropwizard/]. It's not completely
> functional yet, but it has a number of improvements of the existing monitor
> code.
> I thought I would post what I have already and let people give some feedback
> if they're interested. Help is always welcome.
> https://github.com/joshelser/accumulo/tree/dropwizard.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)