On May 29, 2008, at 2:23 PM, Stephan Koops wrote:
>
> the current javadoc of UriBuilder.build() says (see below), that all
> variables are replaced by "", the throws section says, that a
> UriBuilderException is thrown.
> IMO the UriBuilderException is the better solution
Good catch and +1. I'll fix it.
Marc.
>
>
> best regards
> Stephan
> public abstract java.net.URI build() throws UriBuilderException
> Build a URI, any URI template parameters will be replaced by the
> empty string. The build method does not change the state of the
> UriBuilder and it may be called multiple times on the same builder
> instance.
>
> Returns: the URI built from the UriBuilder Throws:
> UriBuilderException - if there are any URI template parameters, or
> if a URI cannot be constructed based on the current state of the
> builder.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.