users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: remove path methods from Request

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 13 Dec 2011 13:10:48 +0100

I was considering that already too, including these 2 additional methods:

    public MultivaluedMap<String, String> getQueryParameters();
    public MultivaluedMap<String, String> getQueryParameters(boolean decode);

Experts, do you have any objections to removing these from Request?

Thanks,
Marek

On 12/13/2011 01:51 AM, Bill Burke wrote:
> I'd like to suggest to remove the path methods from Request:
>
> public URI getPath();
> public UriBuilder getPathBuilder();
> public String getPath(boolean decode);
> public List<PathSegment> getPathSegments();
> public List<PathSegment> getPathSegments(boolean decode);
>
> These don't make a lot of sense on the client. On the server they are basically duplicates of similar methods on UriInfo.
>
> Bill
>