Hi

On Fri, Jul 9, 2010 at 10:29 AM, Rice Yeh <[email protected]> wrote:

> Hi,
>  I have root resource class which match request's address extension. For
> example, htttp://localhost:8080/image/g1.png. The root resource class is
> successfully matched and then try to match the right method. However, in
> CXF, the path used to match to the methods is the extension "png". In
> Jboss's RESTEasy, it is the empty string "". I think the empty string is
> more correct.
>
> RestEasy is a good implementation all right :-)


>
> @Path("{resource:.+\\.(js|css|gif|png)}")
> public class PassThroughResource
> {
>
>    @GET
>    @Path("")
>    public InputStream get(@Context UriInfo uri) {
>    ...
>  }
> }
>
>
I'm presuming you debugged it - how did it happen that .gif was not 'eaten'
by the above regular expression ?

thanks, Sergey


> Regards,
> Rice
>

Reply via email to