Class RequestParameters
- java.lang.Object
-
- io.vertx.reactivex.ext.web.validation.RequestParameters
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<RequestParameters>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description RequestParameters(RequestParameters delegate)
RequestParameters(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestParameter
body()
Return request body when parsed.RequestParameter
cookieParameter(String name)
Get cookie parameter by nameList<String>
cookieParametersNames()
Get list of all parameter names inside cookieboolean
equals(Object o)
RequestParameters
getDelegate()
int
hashCode()
RequestParameter
headerParameter(String name)
Get header parameter by name.List<String>
headerParametersNames()
Get list of all parameter names inside headerstatic RequestParameters
newInstance(RequestParameters arg)
RequestParameter
pathParameter(String name)
Get path parameter by nameList<String>
pathParametersNames()
Get list of all parameter names inside pathRequestParameter
queryParameter(String name)
Get query parameter by nameList<String>
queryParametersNames()
Get list of all parameter names inside queryJsonObject
toJson()
This method converts RequestParameters in an unique JsonObject with 6 fields: cookie, path, query, header, form, body
cookie, path, query, header, form are JsonObject where keys are param names and values are param values, while body depends on body's shape and may not existString
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<RequestParameters> __TYPE_ARG
-
-
Constructor Detail
-
RequestParameters
public RequestParameters(RequestParameters delegate)
-
RequestParameters
public RequestParameters(Object delegate)
-
-
Method Detail
-
getDelegate
public RequestParameters getDelegate()
-
pathParametersNames
public List<String> pathParametersNames()
Get list of all parameter names inside path- Returns:
-
pathParameter
public RequestParameter pathParameter(String name)
Get path parameter by name- Parameters:
name
- Parameter name- Returns:
-
queryParametersNames
public List<String> queryParametersNames()
Get list of all parameter names inside query- Returns:
-
queryParameter
public RequestParameter queryParameter(String name)
Get query parameter by name- Parameters:
name
- Parameter name- Returns:
-
headerParametersNames
public List<String> headerParametersNames()
Get list of all parameter names inside header- Returns:
-
headerParameter
public RequestParameter headerParameter(String name)
Get header parameter by name. This getter is case insensitive.- Parameters:
name
- Parameter name- Returns:
-
cookieParametersNames
public List<String> cookieParametersNames()
Get list of all parameter names inside cookie- Returns:
-
cookieParameter
public RequestParameter cookieParameter(String name)
Get cookie parameter by name- Parameters:
name
- Parameter name- Returns:
-
body
public RequestParameter body()
Return request body when parsed. Forms are managed as- Returns:
-
toJson
public JsonObject toJson()
This method converts RequestParameters in an unique JsonObject with 6 fields: cookie, path, query, header, form, body
cookie, path, query, header, form are JsonObject where keys are param names and values are param values, while body depends on body's shape and may not exist- Returns:
-
newInstance
public static RequestParameters newInstance(RequestParameters arg)
-
-