Java Reference
In-Depth Information
UriBuilder instances can only be instantiated from the static helper methods listed. They
can be initialized by a URI, path, or the @Path annotation of a JAX-RS resource class:
public
public abstract
abstract UriBuilder clone ();
public
public abstract
abstract UriBuilder uri ( URI uri )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder scheme ( String scheme )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder schemeSpecificPart ( String ssp )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder userInfo ( String ui );
public
public abstract
abstract UriBuilder host ( String host )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder port ( int
int port )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder replacePath ( String path );
public
public abstract
abstract UriBuilder path ( String path )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder path ( Class resource )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder path ( Class resource , String method )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder path ( Method method )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder segment ( String ... segments )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder replaceMatrix ( String matrix )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder matrixParam ( String name , Object ... vals )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder replaceMatrixParam ( String name ,
Object ... values ) throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder replaceQuery ( String query )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder queryParam ( String name , Object ... values )
throws
throws IllegalArgumentException ;
public
public abstract
abstract UriBuilder replaceQueryParam ( String name ,
Object ... values ) throws
throws IllegalArgumentException ;
abstract UriBuilder fragment ( String fragment );
These methods are used to piece together various parts of the URI. You can set the values of
a specific part of a URI directly or by using the @Path annotation values declared on JAX-
RS resource methods. Both string values and @Path expressions are allowed to contain tem-
plate parameters:
public
public abstract
Search WWH ::




Custom Search