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:
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.BeanContextable
beanContextFields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER -
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, getAnnotationProvider, getSession, init, isDebug, toString
-
Field Details
-
DEFAULT
Reusable instance ofSimplePartSerializer, all default settings.
-
-
Constructor Details
-
SimplePartSerializer
Constructor- Parameters:
builder- The builder for this object.
Cannot benull .
-
-
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.
-