public abstract class BaseHttpPartParser extends Object implements HttpPartParser
HttpPartParser
HttpPartParser.Null
Constructor and Description |
---|
BaseHttpPartParser() |
Modifier and Type | Method and Description |
---|---|
HttpPartParserSession |
createPartSession()
Creates a new no-argument parser session.
|
<T> T |
parse(HttpPartSchema schema,
String in,
Class<T> toType)
Convenience method for creating a no-arg session and parsing a part of an unspecified part type.
|
<T> T |
parse(HttpPartSchema schema,
String in,
Type toType,
Type... toTypeArgs)
Convenience method for creating a no-arg session and parsing a part of an unspecified part type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPartSession, parse, parse
public BaseHttpPartParser()
public HttpPartParserSession createPartSession()
HttpPartParser
createPartSession
in interface HttpPartParser
public <T> T parse(HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
HttpPartParser
parse
in interface HttpPartParser
schema
- Schema information about the part.
in
- The value being parsed.toType
- The POJO type to transform the input into.ParseException
- Malformed input encountered.SchemaValidationException
- If the input fails schema validation.public <T> T parse(HttpPartSchema schema, String in, Type toType, Type... toTypeArgs) throws ParseException, SchemaValidationException
HttpPartParser
parse
in interface HttpPartParser
schema
- Schema information about the part.
in
- The value being parsed.toType
- The POJO type to transform the input into.toTypeArgs
- The POJO type arguments for Collections and Maps.ParseException
- Malformed input encountered.SchemaValidationException
- If the input fails schema validation.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.