|
rewrite-api-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.servlet.util.URLBuilder
AddressBuilder instead. May be removed in subsequent releases.
@Deprecated public class URLBuilder
Utility for building URL strings. Also manages the URL query string with the help of QueryStringBuilder.
| Method Summary | |
|---|---|
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. Create a new instance of URLBuilder from the given URL segments, Metadata, and
QueryStringBuilder. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static URLBuilder createNew()
URLBuilder. Until modified. This URL will be blank.
public static URLBuilder createFrom(List<String> segments,
Metadata metadata,
QueryStringBuilder query)
URLBuilder from the given URL segments, Metadata, and
QueryStringBuilder.
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)
URLBuilder
public 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 Metadata getMetadata()
Metadata object for this URL
public QueryStringBuilder getQueryStringBuilder()
QueryStringBuilder object for this URL
public URLBuilder setQueryString(QueryStringBuilder query)
QueryStringBuilder object for this URL
public 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 URL
public String toPath()
public String toString()
toString in class Objectpublic URI toURI()
public String toURL()
|
rewrite-api-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||