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 classes/interfaces inherited from interface org.apache.juneau.httppart.HttpPartSerializer
HttpPartSerializer.Creator, HttpPartSerializer.Void
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SimplePartSerializer
Reusable instance ofSimplePartSerializer
, all default settings.Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER
Fields inherited from interface org.apache.juneau.AnnotationProvider
DISABLE_ANNOTATION_CACHING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePartSerializer.Builder
create()
Creates a new builder for this object.Creates a new serializer session.Methods inherited from class org.apache.juneau.httppart.BaseHttpPartSerializer
serialize
Methods inherited from class org.apache.juneau.BeanContextable
getBeanContext, properties
Methods 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:HttpPartSerializer
Creates a new serializer session.- Returns:
- A new serializer session.
-