public interface HttpPartParser
The following default implementations are provided:
UonPartParser
- Parts encoded in UON notation.
SimplePartParser
- Parts encoded in plain text.
Implementations must include either a public no-args constructor or a public constructor that takes in a single
PropertyStore
object.
Modifier and Type | Interface and Description |
---|---|
static interface |
HttpPartParser.Null
Represent "no" part parser.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
parse(HttpPartType partType,
String in,
ClassMeta<T> type)
Converts the specified input to the specified class type.
|
<T> T parse(HttpPartType partType, String in, ClassMeta<T> type) throws ParseException
partType
- The part type being parsed.in
- The input being parsed.type
- The category of value being parsed.ParseException
Copyright © 2018 Apache. All rights reserved.