users@wadl.java.net

Re: Multiple GET methods for same resource

From: Andrew Glowik <andy.glowik_at_bericotechnologies.com>
Date: Wed, 9 Jun 2010 14:55:49 -0400

Are you using URI template?

-ANdrew G.

On Wed, Jun 9, 2010 at 2:27 PM, Hadley, Marc J <mhadley_at_mitre.org> wrote:

> >our WADL defines multiple GET methods for the same resource, all with
> >mediaType application/xml. The generated code then contains multiple
> >methods with name getAsApplicationXml.
> >Is there a way to work around it?
> >I thought of a switch that changes the naming behavior where the method
> >id is used as a prefix.
> >
> A switch could work. However, I'm puzzled why you have multiple GET methods
> in your WADL that all return the same media type - presumably there must be
> some kind of difference between them ?
>
> Marc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_wadl.dev.java.net
> For additional commands, e-mail: users-help_at_wadl.dev.java.net
>
>


-- 
Andrew Glowik
Berico Technologies
410-872-1365