- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file Parameters.java.
◆ add()
Parameters org.turro.action.Parameters.add |
( |
String |
key, |
|
|
Object |
value |
|
) |
| |
Definition at line 48 of file Parameters.java.
49 parameters.put(key, Converter.STANDARD.convert(value, String.class));
◆ asMap()
KeyValueMap org.turro.action.Parameters.asMap |
( |
| ) |
|
◆ copy()
◆ encoded()
String org.turro.action.Parameters.encoded |
( |
| ) |
|
Definition at line 90 of file Parameters.java.
91 StringBuilder sb =
new StringBuilder();
92 if(!Strings.isBlank(url)) {
93 sb.append(url).append(
"?");
95 return sb.append(ENCODED).append(
"=")
96 .append(Base64.getUrlEncoder().encodeToString(
raw(
";").getBytes(charset)))
◆ from()
static Parameters org.turro.action.Parameters.from |
( |
Map< String, String[]> |
parameterMap | ) |
|
|
static |
Definition at line 130 of file Parameters.java.
132 if(parameterMap !=
null) {
133 parameterMap.keySet().forEach((key) -> {
134 if(ENCODED.equals(key)) {
136 KeyValueMap kvm = new KeyValueMap(decode(parameterMap.get(key)[0]));
137 if(kvm != null) instance.addAll(kvm);
138 } catch (ParserException ex) {
139 WebLoggers.info(Parameters.class).exception(ex).log();
142 instance.
add(key, URLDecoder.decode(parameterMap.get(key)[0], charset));
Parameters add(String key, Object value)
◆ get()
String org.turro.action.Parameters.get |
( |
String |
key | ) |
|
◆ instance()
static Parameters org.turro.action.Parameters.instance |
( |
| ) |
|
|
static |
◆ path()
static Parameters org.turro.action.Parameters.path |
( |
String |
path | ) |
|
|
static |
◆ plain() [1/2]
String org.turro.action.Parameters.plain |
( |
| ) |
|
◆ plain() [2/2]
String org.turro.action.Parameters.plain |
( |
String |
separator | ) |
|
Definition at line 78 of file Parameters.java.
79 StringBuilder sb =
new StringBuilder();
80 if(!Strings.isBlank(url)) {
81 sb.append(url).append(
"?");
83 for(Map.Entry<String, String> entry : parameters.entrySet()) {
84 if(!sb.isEmpty()) sb.append(separator);
85 sb.append(entry.getKey()).append(
"=").append(URLEncoder.encode(entry.getValue(), charset));
◆ raw() [1/2]
String org.turro.action.Parameters.raw |
( |
| ) |
|
◆ raw() [2/2]
String org.turro.action.Parameters.raw |
( |
String |
separator | ) |
|
Definition at line 62 of file Parameters.java.
63 StringBuilder sb =
new StringBuilder();
64 if(!Strings.isBlank(url)) {
65 sb.append(url).append(
"?");
67 for(Map.Entry<String, String> entry : parameters.entrySet()) {
68 if(!sb.isEmpty()) sb.append(separator);
69 sb.append(entry.getKey()).append(
"=").append(entry.getValue());
◆ url()
Parameters org.turro.action.Parameters.url |
( |
String |
url | ) |
|
The documentation for this class was generated from the following file: