public abstract class BaseHttpPartParser extends Object implements HttpPartParser
HttpPartParserHttpPartParser.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, waitcreatePartSession, parse, parsepublic BaseHttpPartParser()
public HttpPartParserSession createPartSession()
HttpPartParsercreatePartSession in interface HttpPartParserpublic <T> T parse(HttpPartSchema schema, String in, Class<T> toType) throws ParseException, SchemaValidationException
HttpPartParserparse in interface HttpPartParserschema - 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
HttpPartParserparse in interface HttpPartParserschema - 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–2019 The Apache Software Foundation. All rights reserved.