Uses of Class
ratpack.core.parse.Parse
-
Packages that use Parse Package Description ratpack.core.form Support for handling uploaded forms, including file uploads.ratpack.core.handling The handling of application requests.ratpack.core.jackson Integration with the Jackson JSON marshalling library.ratpack.core.parse Parsing in Ratpack refers to deserializing a request body into a Java object of some type.ratpack.gson Provides integration with Google Gson for JSON parsing and rendering. -
-
Uses of Parse in ratpack.core.form
Methods in ratpack.core.form that return Parse Modifier and Type Method Description static Parse<Form,FormParseOpts>
Form. form()
Creates aparseable object
to parse a request body into aForm
.static Parse<Form,FormParseOpts>
Form. form(boolean includeQueryParams)
Creates aparseable object
to parse a request body into aForm
. -
Uses of Parse in ratpack.core.handling
Methods in ratpack.core.handling with parameters of type Parse Modifier and Type Method Description <T,O>
TContext. parse(TypedData body, Parse<T,O> parse)
Parses the provided request body into an object.<T,O>
Promise<T>Context. parse(Parse<T,O> parse)
Parses the request body into an object. -
Uses of Parse in ratpack.core.jackson
Methods in ratpack.core.jackson that return Parse Modifier and Type Method Description static <T> Parse<T,JsonParseOpts>
Jackson. fromJson(com.google.common.reflect.TypeToken<T> type)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,JsonParseOpts>
Jackson. fromJson(com.google.common.reflect.TypeToken<T> type, ObjectMapper objectMapper)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,JsonParseOpts>
Jackson. fromJson(Class<T> type)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,JsonParseOpts>
Jackson. fromJson(Class<T> type, ObjectMapper objectMapper)
Creates aparseable object
to parse a request body into the given type.static Parse<JsonNode,JsonParseOpts>
Jackson. jsonNode()
Creates aparseable object
to parse a request body into aJsonNode
.static Parse<JsonNode,JsonParseOpts>
Jackson. jsonNode(ObjectMapper objectMapper)
Creates aparseable object
to parse a request body into aJsonNode
. -
Uses of Parse in ratpack.core.parse
Methods in ratpack.core.parse that return Parse Modifier and Type Method Description static <T> Parse<T,?>
Parse. of(com.google.common.reflect.TypeToken<T> type)
Creates a parse object, with no options.static <T,O>
Parse<T,O>Parse. of(com.google.common.reflect.TypeToken<T> type, O opts)
Creates a parse object.static <T> Parse<T,?>
Parse. of(Class<T> type)
Creates a parse object, with no options.static <T,O>
Parse<T,O>Parse. of(Class<T> type, O opts)
Creates a parse object.Methods in ratpack.core.parse with parameters of type Parse Modifier and Type Method Description <T> T
NoOptParserSupport. parse(Context context, TypedData requestBody, Parse<T,Void> parse)
Delegates toNoOptParserSupport.parse(Context, TypedData, TypeToken)
, discarding the opts object of the givenparse
.<T> T
Parser. parse(Context context, TypedData requestBody, Parse<T,O> parse)
Deserializes the request body of the context into an object. -
Uses of Parse in ratpack.gson
Methods in ratpack.gson that return Parse Modifier and Type Method Description static <T> Parse<T,GsonParseOpts>
Gson. fromJson(com.google.common.reflect.TypeToken<T> type)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,GsonParseOpts>
Gson. fromJson(com.google.common.reflect.TypeToken<T> type, com.google.gson.Gson gson)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,GsonParseOpts>
Gson. fromJson(Class<T> type)
Creates aparseable object
to parse a request body into the given type.static <T> Parse<T,GsonParseOpts>
Gson. fromJson(Class<T> type, com.google.gson.Gson gson)
Creates aparseable object
to parse a request body into the given type.static Parse<com.google.gson.JsonElement,GsonParseOpts>
Gson. jsonElement()
Creates aparseable object
to parse a request body into aJsonElement
.static Parse<com.google.gson.JsonElement,GsonParseOpts>
Gson. jsonElement(com.google.gson.Gson gson)
Creates aparseable object
to parse a request body into aJsonElement
.
-