Hi
>> Can you add ".extent" as a path segment to the builder instance ?
>> Example,
>>
>> builder.path(".extent");
>> builder.query("param", "junk");
>> builder.build();
>>
>> Will it work for you ?
>
> Afraid not.
>
> For instance, here's an approximation of my @Path:
>
> @Path("stuff/{productId}/{zip}")
>
> Here's a paraphrased version of the method that builds the URL:
>
> private String buildStuffURL(String productId, String zip) {
> UriBuilder builder =
> getUriInfo().getBaseUriBuilder().path(getClass()).path(getMethodMap().get("getStuff")).path(buildFileExtent());
> return builder.build(productId, zip).toString();
> }
>
> The ".path(buildFileExtent)" is what I added on your advice (I used to just
> append "buildFileExtent()" to the end of "zip", which is not optimal).
>
> What I get is this (minus "http://"):
>
> host:port/initialpath/stuff/1/98077/.en-us.xml
>
> I needed to have this:
>
> host:port/initialpath/stuff/1/98077.en-us.xml
>
The following should work then :
.path(getMethodMap().get("getStuff") + buildFileExtent());
Cheers, Sergey