public abstract class BaseHttpPartParserSession extends Object implements HttpPartParserSession
HttpPartParserSession
Constructor and Description |
---|
BaseHttpPartParserSession() |
Modifier and Type | Method and Description |
---|---|
<T> T |
parse(HttpPartSchema schema,
String in,
Class<T> toType)
Same as
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, Class) but defaults to a |
<T> T |
parse(HttpPartSchema schema,
String in,
ClassMeta<T> toType)
Same as
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, ClassMeta) but defaults to a |
<T> T |
parse(HttpPartSchema schema,
String in,
Type toType,
Type... toTypeArgs)
Same as
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, Type, Type...) but defaults to a |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse, parse, parse
public BaseHttpPartParserSession()
public <T> T parse(HttpPartSchema schema, String in, ClassMeta<T> toType) throws ParseException, SchemaValidationException
HttpPartParserSession
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, ClassMeta)
but defaults to a parse
in interface HttpPartParserSession
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(HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
HttpPartParserSession
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, Class)
but defaults to a parse
in interface HttpPartParserSession
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(HttpPartSchema schema, String in, Type toType, Type... toTypeArgs) throws ParseException, SchemaValidationException
HttpPartParserSession
HttpPartParserSession.parse(HttpPartType, HttpPartSchema, String, Type, Type...)
but defaults to a parse
in interface HttpPartParserSession
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.