|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.commons.impl.UrlBuilder
public class UrlBuilder
Utility class that helps building URLs.
Field Summary | |
---|---|
static char[] |
RFC7232_RESERVED
|
Constructor Summary | |
---|---|
UrlBuilder(String url)
Constructor. |
|
UrlBuilder(String scheme,
String host,
int port,
String path)
Constructor. |
|
UrlBuilder(UrlBuilder urlBuilder)
Copy constructor. |
Method Summary | |
---|---|
UrlBuilder |
addParameter(String name,
Object value)
Adds a parameter to the URL. |
UrlBuilder |
addPath(String path)
Adds a path to the URL. |
protected UrlBuilder |
addPathPart(String part,
boolean quoteSlash)
|
UrlBuilder |
addPathSegment(String pathSegment)
Adds a path segment to the URL. |
static String |
normalizeParameter(Object value)
Converts an object to a String that can be used as a parameter value. |
static String |
quoteURIPathComponent(String s,
boolean quoteSlash)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static char[] RFC7232_RESERVED
Constructor Detail |
---|
public UrlBuilder(String url)
url
- initial URLpublic UrlBuilder(String scheme, String host, int port, String path)
scheme
- schemehost
- hostport
- portpath
- pathpublic UrlBuilder(UrlBuilder urlBuilder)
Method Detail |
---|
public UrlBuilder addParameter(String name, Object value)
name
- parameter namevalue
- parameter valuepublic UrlBuilder addPathSegment(String pathSegment)
pathSegment
- the path segment.public UrlBuilder addPath(String path)
path
- the pathprotected UrlBuilder addPathPart(String part, boolean quoteSlash)
public static String quoteURIPathComponent(String s, boolean quoteSlash)
public static String normalizeParameter(Object value)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |