users@jersey.java.net

[Jersey] Re: Pretty print Response/XML output

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 27 Sep 2011 06:51:00 -0700

Hello Isaac,

please see
http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/core/util/FeaturesAndProperties.html#FEATURE_FORMATTED

Regards,
Pavel

On 9/27/11 2:25 AM, Isaac Li wrote:
> Hi,
>
> I'm using Jersey storage service example which works great. Now I want
> to print a pretty Response/XML for a output log.
>
> I searched:
> http://jersey.java.net/nonav/documentation/latest/user-guide.html#d4e814 and
> don't know how to.
>
> it's said there're some way for search: "java pretty print xml
> <http://www.google.com.hk/search?rlz=1C1CHKZ_enCN441CN441&sourceid=chrome&ie=UTF-8&q=java+pretty+print+xml>"
>
>
> I want to know is there a easy way to achieve that in Jersey?
>
> Thanks
>
>
> Isaac