public class SimplePartParser extends Object implements HttpPartParser
HttpPartParser
that takes in the strings and tries to convert them to POJOs using constructors and static create methods.
The class being created must be one of the following in order to convert it from a string:
String
parameter.
String
parameter:
fromString
fromValue
valueOf
parse
parseString
forName
forString
HttpPartParser.Null
Modifier and Type | Field and Description |
---|---|
static SimplePartParser |
DEFAULT
Reusable instance of
SimplePartParser , all default settings. |
Constructor and Description |
---|
SimplePartParser() |
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.
|
public static final SimplePartParser DEFAULT
SimplePartParser
, all default settings.public SimplePartParser()
public <T> T parse(HttpPartType partType, String in, ClassMeta<T> type) throws ParseException
HttpPartParser
parse
in interface HttpPartParser
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.