Package org.apache.juneau.httppart
Interface HttpPartParser
- All Known Subinterfaces:
HttpPartParser.Void
- All Known Implementing Classes:
BaseHttpPartParser
,OpenApiParser
,SimplePartParser
,UonParser
,UonParser.Decoding
,UrlEncodingParser
public interface HttpPartParser
Interface used to convert HTTP headers, query parameters, form-data parameters, and URI path variables to POJOs
The following default implementations are provided:
OpenApiParser
- Parts encoded in based on OpenAPI schema.UonParser
- Parts encoded in UON notation.SimplePartParser
- Parts encoded in plain text.
Implementations must include either a public no-args constructor.
See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A creator for a part parser.static interface
Represent "no" part parser. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpPartParser.Creator
creator()
Instantiates a creator for a part parser.<T> ClassMeta<T>
getClassMeta
(Class<T> c) Returns metadata about the specified class.<T> ClassMeta<T>
getClassMeta
(Type t, Type... args) Returns metadata about the specified class.Creates a new parser session.
-
Method Details
-
creator
Instantiates a creator for a part parser.- Returns:
- A new creator.
-
getPartSession
Creates a new parser session.- Returns:
- A new parser session.
-
getClassMeta
Returns metadata about the specified class.- Type Parameters:
T
- The class type.- Parameters:
c
- The class type.- Returns:
- Metadata about the specified class.
-
getClassMeta
Returns metadata about the specified class.- Type Parameters:
T
- The class type.- Parameters:
t
- The class type.args
- The class type args.- Returns:
- Metadata about the specified class.
-