Package org.xwiki.repository
Class UriBuilder
- java.lang.Object
-
- org.xwiki.repository.UriBuilder
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
UriBuilder
public class UriBuilder extends Object implements Cloneable
Generate a URI to use to request a REST server.Support javax.ws.rs.Path style URIs.
- Since:
- 4.2M1
- Version:
- $Id: 5824050bcf9880a53cd10150292316671f51f5cd $
-
-
Constructor Summary
Constructors Constructor Description UriBuilder(String base, String path)
UriBuilder(URI base, String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
build(Object... values)
UriBuilder
clone()
static String
encode(String toEncode)
static boolean
isUnreserved(char character)
UriBuilder
queryParam(String name, Object... values)
String
toString()
-
-
-
Method Detail
-
queryParam
public UriBuilder queryParam(String name, Object... values) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isUnreserved
public static boolean isUnreserved(char character)
-
clone
public UriBuilder clone()
-
-