abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Ancona <...@anconafamily.com>
Subject Re: [jira] Resolved: (ABDERA-131) Unable to override the default writer using abdera.properties
Date Thu, 06 Mar 2008 21:13:19 GMT
James M Snell (JIRA) wrote:
> Resolution: Fixed Fix Version/s: 0.4.0
> 
> Fix checked in. Give it a try.  In my tests, I was able to
> successfully set both the prettyxml and json writers as the default

I'm replying here rather than in JIRA, because I'm not sure whether the
behavior I'm seeing now is a bug.

With James' fix, documents being served from my Adapters are now
formatted using PrettyXML, but I noticed that my service document was
still unformatted. I notice that AbstractProvider.getServiceDocument()
uses StreamWriterResponseContext to generate the service document. I
overrode that method to call setAutoIndent(true) on the ResponseContext
and got the desired behavior. Is that the best way to get a formatted
service document? Any suggestion on how to get a JSON service
version :-)?

Jim


Mime
View raw message