AddressBuilder instead. May be removed in subsequent releases.@Deprecated public class URLBuilder extends Object
QueryStringBuilder.| Modifier and Type | Method and Description |
|---|---|
URLBuilder |
addQueryParameters(String parameters)
Deprecated.
Parse and add more query parameters to this
URLBuilder |
URLBuilder |
appendPathSegments(List<String> segments)
Deprecated.
Append additional path segments to the end of this URL.
|
URLBuilder |
appendPathSegments(String segments)
Deprecated.
Append additional path segments to the end of this URL.
|
static URLBuilder |
createFrom(List<String> segments,
Metadata metadata)
Deprecated.
Create a new instance of
URLBuilder from the given URL path segments and Metadata. |
static URLBuilder |
createFrom(List<String> segments,
Metadata metadata,
QueryStringBuilder query)
Deprecated.
|
static URLBuilder |
createFrom(String segments)
Deprecated.
Create a new instance of
URLBuilder from the given URL path segments. |
static URLBuilder |
createNew()
Deprecated.
Return a new instance of
URLBuilder. |
URLBuilder |
decode()
Deprecated.
Return this
URLBuilder after path segments and query parameters have been decoded. |
URLBuilder |
encode()
Deprecated.
Return this
URLBuilder after path segments and query parameters have been encoded. |
String |
getEncoding()
Deprecated.
Get the character encoding of this URL (default UTF-8)
|
Metadata |
getMetadata()
Deprecated.
Get the
Metadata object for this URL |
QueryStringBuilder |
getQueryStringBuilder()
Deprecated.
Get the
QueryStringBuilder object for this URL |
List<String> |
getSegments()
Deprecated.
Return all segments (separated by '/') in this URL
|
boolean |
hasLeadingSlash()
Deprecated.
Return true if this URL begins with '/'
|
boolean |
hasTrailingSlash()
Deprecated.
Return true if this URL ends with '/'
|
int |
numSegments()
Deprecated.
Get the number of segments (separated by '/') in this URL
|
void |
setEncoding(String encoding)
Deprecated.
Set the character encoding of this URL (default UTF-8)
|
URLBuilder |
setMetadata(Metadata metadata)
Deprecated.
Set the
Metadata object for this URL |
URLBuilder |
setQueryString(QueryStringBuilder query)
Deprecated.
Set the
QueryStringBuilder object for this URL |
String |
toPath()
Deprecated.
Return the portion of this URL representing the path.
|
String |
toString()
Deprecated.
Return a String representation of this URL
|
URI |
toURI()
Deprecated.
Return a URI representation of this URL including path and query string
|
String |
toURL()
Deprecated.
Return a String representation of this URL including path and query string
|
public static URLBuilder createNew()
URLBuilder. Until modified. This URL will be blank.public static URLBuilder createFrom(List<String> segments, Metadata metadata, QueryStringBuilder query)
public static URLBuilder createFrom(List<String> segments, Metadata metadata)
URLBuilder from the given URL path segments and Metadata.public static URLBuilder createFrom(String segments)
URLBuilder from the given URL path segments.public URLBuilder appendPathSegments(List<String> segments)
Metadata for this URLBuilder based on the parsed segments given.public URLBuilder appendPathSegments(String segments)
Metadata for this URLBuilder based on the parsed segments given.public URLBuilder addQueryParameters(String parameters)
URLBuilderpublic URLBuilder decode()
URLBuilder after path segments and query parameters have been decoded.public URLBuilder encode()
URLBuilder after path segments and query parameters have been encoded.public String getEncoding()
public QueryStringBuilder getQueryStringBuilder()
QueryStringBuilder object for this URLpublic URLBuilder setQueryString(QueryStringBuilder query)
QueryStringBuilder object for this URLpublic List<String> getSegments()
public boolean hasLeadingSlash()
public boolean hasTrailingSlash()
public int numSegments()
public void setEncoding(String encoding)
public URLBuilder setMetadata(Metadata metadata)
Metadata object for this URLpublic String toPath()
public String toString()
public URI toURI()
public String toURL()
Copyright © 2016 OCPsoft. All rights reserved.