public interface HttpPartParserSession
HttpPartParser
.
This class is NOT thread safe. It is typically discarded after one-time use although it can be reused within the same thread.
Modifier and Type | Method and Description |
---|---|
<T> T |
parse(HttpPartSchema schema,
String in,
Class<T> toType)
Same as
parse(HttpPartType, HttpPartSchema, String, Class) but defaults to a |
<T> T |
parse(HttpPartSchema schema,
String in,
ClassMeta<T> toType)
Same as
parse(HttpPartType, HttpPartSchema, String, ClassMeta) but defaults to a |
<T> T |
parse(HttpPartSchema schema,
String in,
Type toType,
Type... toTypeArgs)
Same as
parse(HttpPartType, HttpPartSchema, String, Type, Type...) but defaults to a |
<T> T |
parse(HttpPartType partType,
HttpPartSchema schema,
String in,
Class<T> toType)
Converts the specified input to the specified class type.
|
<T> T |
parse(HttpPartType partType,
HttpPartSchema schema,
String in,
ClassMeta<T> toType)
Converts the specified input to the specified class type.
|
<T> T |
parse(HttpPartType partType,
HttpPartSchema schema,
String in,
Type toType,
Type... toTypeArgs)
Converts the specified input to the specified class type.
|
<T> T parse(HttpPartType partType, HttpPartSchema schema, String in, ClassMeta<T> toType) throws ParseException, SchemaValidationException
partType
- The part type being parsed.schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.<T> T parse(HttpPartType partType, HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
partType
- The part type being parsed.schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.<T> T parse(HttpPartType partType, HttpPartSchema schema, String in, Type toType, Type... toTypeArgs) throws ParseException, SchemaValidationException
partType
- The part type being parsed.schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.toTypeArgs
- The POJO type arguments for Collection and Map types.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.<T> T parse(HttpPartSchema schema, String in, ClassMeta<T> toType) throws ParseException, SchemaValidationException
parse(HttpPartType, HttpPartSchema, String, ClassMeta)
but defaults to a schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.<T> T parse(HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
parse(HttpPartType, HttpPartSchema, String, Class)
but defaults to a schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.<T> T parse(HttpPartSchema schema, String in, Type toType, Type... toTypeArgs) throws ParseException, SchemaValidationException
parse(HttpPartType, HttpPartSchema, String, Type, Type...)
but defaults to a schema
- Schema information about the part.
in
- The input being parsed.toType
- The POJO type to transform the input into.toTypeArgs
- The POJO type arguments for Collection and Map types.ParseException
- Malformed input encountered.SchemaValidationException
- If the input or resulting HTTP part object fails schema validation.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.