Package | Description |
---|---|
ratpack.handling |
The handling of application requests.
|
ratpack.jackson |
Integration with the Jackson JSON marshalling library.
|
ratpack.parse |
Parsing in Ratpack refers to deserializing a request body into a Java object of some type.
|
Modifier and Type | Method and Description |
---|---|
<T,O> T |
Context.parse(Parse<T,O> parse)
Parses the request body into an object.
|
Modifier and Type | Method and Description |
---|---|
static <T> Parse<T,JsonParseOpts> |
Jackson.fromJson(Class<T> type) |
static <T> Parse<T,JsonParseOpts> |
Jackson.fromJson(Class<T> type,
ObjectMapper objectMapper) |
static <T> Parse<T,JsonParseOpts> |
Jackson.fromJson(TypeToken<T> type) |
static <T> Parse<T,JsonParseOpts> |
Jackson.fromJson(TypeToken<T> type,
ObjectMapper objectMapper) |
static Parse<JsonNode,JsonParseOpts> |
Jackson.jsonNode() |
static Parse<JsonNode,JsonParseOpts> |
Jackson.jsonNode(ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
static <T> Parse<T,NullParseOpts> |
Parse.of(Class<T> type)
Creates a parse object, with a
NullParseOpts options object. |
static <T,O> Parse<T,O> |
Parse.of(Class<T> type,
O opts)
Creates a parse object.
|
static <T> Parse<T,NullParseOpts> |
Parse.of(TypeToken<T> type)
Creates a parse object, with a
NullParseOpts options object. |
static <T,O> Parse<T,O> |
Parse.of(TypeToken<T> type,
O opts)
Creates a parse object.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NoOptParserSupport.parse(Context context,
TypedData requestBody,
Parse<T,NullParseOpts> parse)
Delegates to
NoOptParserSupport.parse(ratpack.handling.Context, ratpack.http.TypedData, TypeToken) , discarding the opts object of the given parse . |
<T> T |
Parser.parse(Context context,
TypedData requestBody,
Parse<T,O> parse)
Deserializes the request body of the context into an object.
|