Package org.apache.juneau.httppart
Class SimplePartParser
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.httppart.BaseHttpPartParser
org.apache.juneau.httppart.SimplePartParser
- All Implemented Interfaces:
- AnnotationProvider,- HttpPartParser
An implementation of 
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:
- 
      An enum .
- 
      Have a public constructor with a single String parameter.
- 
      Have one of the following public static methods that takes in a single String parameter:- fromString 
- fromValue 
- valueOf 
- parse 
- parseString 
- forName 
- forString 
 
Notes:
- This class is thread safe and reusable.
See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface org.apache.juneau.httppart.HttpPartParserHttpPartParser.Creator, HttpPartParser.Void
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final SimplePartParserReusable instance ofSimplePartParser, all default settings.static final SimplePartParserSessionReusable instance ofSimplePartParser, all default settings.Fields inherited from class org.apache.juneau.ContextCONTEXT_APPLY_FILTERFields inherited from interface org.apache.juneau.AnnotationProviderDISABLE_ANNOTATION_CACHING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SimplePartParser.Buildercreate()Creates a new builder for this object.Creates a new parser session.Methods inherited from class org.apache.juneau.httppart.BaseHttpPartParsergetClassMeta, getClassMeta, parse, parse, parseMethods inherited from class org.apache.juneau.BeanContextablegetBeanContext, propertiesMethods inherited from class org.apache.juneau.Contextcopy, createBuilder, createSession, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, getSession, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
- 
Field Details- 
DEFAULTReusable instance ofSimplePartParser, all default settings.
- 
DEFAULT_SESSIONReusable instance ofSimplePartParser, all default settings.
 
- 
- 
Constructor Details- 
SimplePartParserConstructor- Parameters:
- builder- The builder for this object.
 
 
- 
- 
Method Details- 
createCreates a new builder for this object.- Returns:
- A new builder.
 
- 
getPartSessionDescription copied from interface:HttpPartParserCreates a new parser session.- Returns:
- A new parser session.
 
 
-