Package org.apache.juneau.httppart
Class SimplePartSerializer
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.httppart.BaseHttpPartSerializer
org.apache.juneau.httppart.SimplePartSerializer
- All Implemented Interfaces:
AnnotationProvider,HttpPartSerializer
An implementation of
HttpPartSerializer that simply serializes everything using Object.toString().
More precisely, uses the Mutaters.toString(Object) method to stringify objects.
Notes:
- This class is thread safe and reusable.
See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.juneau.httppart.HttpPartSerializer
HttpPartSerializer.Creator, HttpPartSerializer.Void -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimplePartSerializerReusable instance ofSimplePartSerializer, all default settings.Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTERFields inherited from interface org.apache.juneau.AnnotationProvider
DISABLE_ANNOTATION_CACHING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePartSerializer.Buildercreate()Creates a new builder for this object.Creates a new serializer session.Methods inherited from class org.apache.juneau.httppart.BaseHttpPartSerializer
serializeMethods inherited from class org.apache.juneau.BeanContextable
getBeanContext, propertiesMethods inherited from class org.apache.juneau.Context
copy, 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
-
DEFAULT
Reusable instance ofSimplePartSerializer, all default settings.
-
-
Constructor Details
-
SimplePartSerializer
Constructor- Parameters:
builder- The builder for this object.
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-
getPartSession
Description copied from interface:HttpPartSerializerCreates a new serializer session.- Returns:
- A new serializer session.
-