great... btw, I updated my pom files to 1.1.2-ea and the QueryParam
works on the client side now..
It is going on:
http://weblogs.java.net/blog/felipegaucho/archive/2009/09/07/rest-experiment
I hope to have a complete demo system up to the end of this year...
* and I don't have a client to consume the service, as usual.. :( eheh
On Mon, Sep 7, 2009 at 8:00 PM, Paul Sandoz<Paul.Sandoz_at_sun.com> wrote:
>
> On Sep 7, 2009, at 7:41 PM, Felipe Gaścho wrote:
>
>> I am coding a method to transfer a file contents between the service
>> and the client.. what is the method return type ? OutputStream ?
>> byte[] ?
>
> You can return an instance of InputStream.
>
> Or you can return an instance of StreamingOutput:
>
> https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/core/StreamingOutput.html
>
>
> I recently came across this for zip files:
>
> http://zcox.wordpress.com/2009/08/26/dynamically-generating-zip-files-in-jersey/
>
> Paul.
>
>> Jersey has support for stax ?
>>
>> @GET
>> @Path("{acronym}/file")
>> @Produces("what??")
>> public byte[] downloadAttachment() {
>> // something here
>> }
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
--
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl