Marc Hadley wrote:
> On Oct 31, 2007, at 2:31 PM, Paul Sandoz wrote:
>>
>> IIRC Matrix parameters are not supported by the WADL generation.
>>
> That's correct though I can't recall why. Looking at the code header
> params are also ignored.
>
> If its urgent I could try to hack in support now but all things being
> equal I'd rather wait for the resource model API to be completed since
> all the WADL generation code will need to be rewritten once that is
> available. Let me know if it can wait or if this is holding you up.
I think we can wait on using the matrix params in our code generation
since our feature cut-off date is this
Friday and I don't want to hold up jersey 0.4 release. Ayub can
continue working on the test client
support for matrix params. We just won't generate any code using it.
Do you think this will be available in 0.5 release?
Thanks.
Peter
>
> Marc.
>
>>
>> Ayub Khan wrote:
>>> Hi Paul,
>>> With 0.4ea jersey available in REST modules of NB6.0 trunk.
>>> I was trying MatrixParam annotation.
>>> /**
>>> * Retrieves representation of an instance of
>>> hello.HelloWorldResource
>>> * @return an instance of java.lang.String
>>> */
>>> @HttpMethod("GET")
>>> @ProduceMime("application/xml")
>>> public String getXml(@MatrixParam("name") String name) {
>>> return "<?xml version='1.0' encoding='UTF-8'?>\n<b>Hello
>>> "+name+"</b>";
>>> }
>>> After deploying the app, if I try the URL
>>> http://localhost:8080/CustomerDB/resources/hello3;name=test
>>> I get 404 error on the browser.
>>> Also checked the wadl, it does not have a param element
>>> (I was expecting this element also to have a style="matrix"
>>> attribute) for the resource hello3.
>>> application.wadl
>>> ---------------------
>>> ...
>>> <resource path="hello3">
>>> <method name="GET">
>>> <request>
>>> <representation/>
>>> </request>
>>> <response>
>>> <representation mediaType="application/xml"/>
>>> </response>
>>> </method>
>>> ...
>>> ----------------------
>>> Can you please provide a sample and how to test it.
>>> Thanks
>>> Ayub
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>>
>> --
>> | ? + ? = To question
>> ----------------\
>> Paul Sandoz
>> x38109
>> +33-4-76188109
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>>
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>