public class SimplePartParserSession extends BaseHttpPartParserSession
SimplePartParser
.
This class is NOT thread safe. It is typically discarded after one-time use although it can be reused within the same thread.
Constructor and Description |
---|
SimplePartParserSession() |
Modifier and Type | Method and Description |
---|---|
<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.
|
parse, parse, parse
public SimplePartParserSession()
public <T> T parse(HttpPartType partType, HttpPartSchema schema, String in, ClassMeta<T> toType) throws ParseException, SchemaValidationException
HttpPartParserSession
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.public <T> T parse(HttpPartType partType, HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
HttpPartParserSession
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.public <T> T parse(HttpPartType partType, HttpPartSchema schema, String in, Type toType, Type... toTypeArgs) throws ParseException, SchemaValidationException
HttpPartParserSession
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.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.