public static class URLCoder.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding |
protected boolean |
hasParams |
protected java.lang.StringBuilder |
url |
Constructor and Description |
---|
Builder(java.lang.String path,
boolean encodePath,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get()
Returns full URL.
|
URLCoder.Builder |
queryParam(java.lang.String name,
java.lang.Object value) |
URLCoder.Builder |
queryParam(java.lang.String name,
java.lang.String value)
Appends new query parameter to the url.
|
protected final java.lang.StringBuilder url
protected final java.lang.String encoding
protected boolean hasParams
public Builder(java.lang.String path, boolean encodePath, java.lang.String encoding)
public URLCoder.Builder queryParam(java.lang.String name, java.lang.Object value)
public URLCoder.Builder queryParam(java.lang.String name, java.lang.String value)
public java.lang.String get()
Copyright © 2003-present Jodd Team