public class RequestParameterImpl extends Object implements RequestParameter
| Constructor and Description |
|---|
RequestParameterImpl() |
RequestParameterImpl(String name) |
RequestParameterImpl(String name,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<RequestParameter> |
getArray()
Returns null if value is not a list, otherwise it returns value
|
Boolean |
getBoolean()
Returns null if value is not a Boolean, otherwise it returns value
|
Double |
getDouble()
Returns null if value is not a Double, otherwise it returns value
|
Float |
getFloat()
Returns null if value is not a Float, otherwise it returns value
|
Integer |
getInteger()
Returns null if value is not an Integer, otherwise it returns value
|
JsonArray |
getJsonArray()
Returns null if value is not a JsonArray, otherwise it returns value
|
JsonObject |
getJsonObject()
Returns null if value is not a JsonObject, otherwise it returns value
|
Long |
getLong()
Returns null if value is not a Long, otherwise it returns value
|
String |
getName()
Get parameter name
|
List<String> |
getObjectKeys()
If value is a map of fields, it returns keys of map, otherwise it returns null
|
RequestParameter |
getObjectValue(String key)
If value is a map of fields, it returns value of field with key provided, otherwise it returns null
|
String |
getString()
Returns null if value is not a String, otherwise it returns value
|
Object |
getValue() |
int |
hashCode() |
boolean |
isArray()
Returns true if value of RequestParameter is an array
|
boolean |
isBoolean()
Returns true if value of RequestParameter is a Boolean instance
|
boolean |
isDouble()
Returns true if value of RequestParameter is a Double instance
|
boolean |
isEmpty()
Alias of
RequestParameter.isNull() |
boolean |
isFloat()
Returns true if value of RequestParameter is a Float instance
|
boolean |
isInteger()
Returns true if value of RequestParameter is an Integer instance
|
boolean |
isJsonArray()
Returns true if value of RequestParameter is a JsonArray instance
|
boolean |
isJsonObject()
Returns true if value of RequestParameter is a JsonObject instance
|
boolean |
isLong()
Returns true if value of RequestParameter is a Long instance
|
boolean |
isNull()
Returns true if value is null
|
boolean |
isObject()
Returns true if value of RequestParameter is a map of fields
|
boolean |
isString()
Returns true if value of RequestParameter is a String instance
|
RequestParameter |
merge(RequestParameter mergingObj)
Merge this request parameter with another one.
|
void |
setName(String name)
Set parameter name
|
void |
setValue(Object value)
Set value
|
Object |
toJson()
Converts deeply this RequestParameter in a Json representation
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreate, createpublic RequestParameterImpl(String name)
public RequestParameterImpl()
public RequestParameter merge(RequestParameter mergingObj)
RequestParametermerge in interface RequestParameterpublic String getName()
RequestParametergetName in interface RequestParameterpublic void setName(String name)
RequestParametersetName in interface RequestParameterpublic void setValue(Object value)
RequestParametersetValue in interface RequestParameterpublic Object getValue()
public List<String> getObjectKeys()
RequestParametergetObjectKeys in interface RequestParameterpublic RequestParameter getObjectValue(String key)
RequestParametergetObjectValue in interface RequestParameterpublic boolean isObject()
RequestParameterisObject in interface RequestParameterpublic List<RequestParameter> getArray()
RequestParametergetArray in interface RequestParameterpublic boolean isArray()
RequestParameterisArray in interface RequestParameterpublic String getString()
RequestParametergetString in interface RequestParameterpublic boolean isString()
RequestParameterisString in interface RequestParameterpublic Integer getInteger()
RequestParametergetInteger in interface RequestParameterpublic boolean isInteger()
RequestParameterisInteger in interface RequestParameterpublic Long getLong()
RequestParametergetLong in interface RequestParameterpublic boolean isLong()
RequestParameterisLong in interface RequestParameterpublic Float getFloat()
RequestParametergetFloat in interface RequestParameterpublic boolean isFloat()
RequestParameterisFloat in interface RequestParameterpublic Double getDouble()
RequestParametergetDouble in interface RequestParameterpublic boolean isDouble()
RequestParameterisDouble in interface RequestParameterpublic Boolean getBoolean()
RequestParametergetBoolean in interface RequestParameterpublic boolean isBoolean()
RequestParameterisBoolean in interface RequestParameterpublic JsonObject getJsonObject()
RequestParametergetJsonObject in interface RequestParameterpublic boolean isJsonObject()
RequestParameterisJsonObject in interface RequestParameterpublic JsonArray getJsonArray()
RequestParametergetJsonArray in interface RequestParameterpublic boolean isJsonArray()
RequestParameterisJsonArray in interface RequestParameterpublic boolean isNull()
RequestParameterisNull in interface RequestParameterpublic boolean isEmpty()
RequestParameterRequestParameter.isNull()isEmpty in interface RequestParameterpublic Object toJson()
RequestParametertoJson in interface RequestParameterCopyright © 2020. All rights reserved.