Class RdfStreamSerializerSession.Builder
- Enclosing class:
- RdfStreamSerializerSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies a consumer to this builder if it's the specified type.build()Build the object.Debug mode.javaMethod(Method value) The java method that called this serializer, usually the method in a REST servlet.The session locale.The session media type.mediaTypeDefault(MediaType value) Same asMarshallingSession.Builder.mediaType(MediaType)but doesn't overwrite the value if it is already set.properties(Map<String, Object> value) Session properties.Adds a property to this session.resolver(VarResolverSession value) String variable resolver.schema(HttpPartSchema value) HTTP-part schema.schemaDefault(HttpPartSchema value) Same asSerializerSession.Builder.schema(HttpPartSchema)but doesn't overwrite the value if it is already set.The session timezone.timeZoneDefault(TimeZone value) Same asMarshallingSession.Builder.timeZone(TimeZone)but doesn't overwrite the value if it is already set.Create an unmodifiable session.uriContext(UriContext value) URI context bean.Methods inherited from class org.apache.juneau.marshall.serializer.SerializerSession.Builder
addBeanTypes, addRootType, keepNullProperties, nonDefault, sortCollections, sortMaps, trimEmptyCollections, trimEmptyMaps, trimStringsMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseSession.Builder
initialDepthMethods inherited from class org.apache.juneau.marshall.MarshallingSession.Builder
activeViewMethods inherited from class org.apache.juneau.marshall.ContextSession.Builder
cvt, self
-
Constructor Details
-
Builder
-
-
Method Details
-
apply
Description copied from class:ContextSession.BuilderApplies a consumer to this builder if it's the specified type.- Overrides:
applyin classContextSession.Builder<RdfStreamSerializerSession.Builder>- Type Parameters:
T- The expected type.- Parameters:
type- The expected type.
Cannot benull .apply- The consumer to apply.
Cannot benull .- Returns:
- This object.
-
build
Description copied from class:MarshallingSession.BuilderBuild the object.- Overrides:
buildin classOutputStreamSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Returns:
- The built object.
-
debug
Description copied from class:ContextSession.BuilderDebug mode.Enables the following additional information during parsing:
- When bean setters throws exceptions, the exception includes the object stack information in order to determine how that method was invoked.
If not specified, defaults to
Context.Builder.debug().See Also:
- Overrides:
debugin classContextSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull , defaults toContext.isDebug().- Returns:
- This object.
-
javaMethod
Description copied from class:SerializerSession.BuilderThe java method that called this serializer, usually the method in a REST servlet.- Overrides:
javaMethodin classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new property value.
Can benull (value will not be set, existing value will be kept).- Returns:
- This object.
-
locale
Description copied from class:MarshallingSession.BuilderThe session locale.Specifies the default locale for serializer and parser sessions.
If not specified, defaults to
MarshallingContext.Builder.locale(Locale).See Also:
- Overrides:
localein classMarshallingSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull defaults toMarshallingContext.getLocale()- Returns:
- This object.
-
mediaType
Description copied from class:MarshallingSession.BuilderThe session media type.Specifies the default media type value for serializer and parser sessions.
If not specified, defaults to
MarshallingContext.Builder.mediaType(MediaType).See Also:
- Overrides:
mediaTypein classMarshallingSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull defaults toMarshallingContext.getMediaType().- Returns:
- This object.
-
mediaTypeDefault
Description copied from class:MarshallingSession.BuilderSame asMarshallingSession.Builder.mediaType(MediaType)but doesn't overwrite the value if it is already set.- Overrides:
mediaTypeDefaultin classMarshallingSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull , then the media type defined on the context is used.- Returns:
- This object.
-
properties
Description copied from class:ContextSession.BuilderSession properties.Session properties are generic key-value pairs that can be passed through the session and made available to any customized serializers/parsers or swaps.
- Overrides:
propertiesin classContextSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Cannot benull .- Returns:
- This object.
-
property
Description copied from class:ContextSession.BuilderAdds a property to this session.If the key matches a known session property (e.g.
"debug" or"ContextSession.debug" ), the value is converted viaBasicConverterand routed to the corresponding typed setter. Unknown keys are stored in the raw session properties map.- Overrides:
propertyin classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
key- The property key.
Cannot benull .value- The property value.
Can benull (resets typed properties to their default; removes raw properties).- Returns:
- This object.
-
resolver
Description copied from class:SerializerSession.BuilderString variable resolver.If not specified, defaults to session created by
VarResolver.DEFAULT.- Overrides:
resolverin classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new property value.
Can benull (value will not be set, defaults to session created byVarResolver.DEFAULTwhen accessed).- Returns:
- This object.
-
schema
Description copied from class:SerializerSession.BuilderHTTP-part schema.Used for schema-based serializers and parsers to define additional formatting.
- Overrides:
schemain classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Can benull (value will not be set, existing value will be kept).- Returns:
- This object.
-
schemaDefault
Description copied from class:SerializerSession.BuilderSame asSerializerSession.Builder.schema(HttpPartSchema)but doesn't overwrite the value if it is already set.- Overrides:
schemaDefaultin classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Can benull (value will not be set).- Returns:
- This object.
-
timeZone
Description copied from class:MarshallingSession.BuilderThe session timezone.Specifies the default timezone for serializer and parser sessions.
If not specified, defaults to
MarshallingContext.Builder.timeZone(TimeZone).See Also:
- Overrides:
timeZonein classMarshallingSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull defaults toMarshallingContext.getTimeZone().- Returns:
- This object.
-
timeZoneDefault
Description copied from class:MarshallingSession.BuilderSame asMarshallingSession.Builder.timeZone(TimeZone)but doesn't overwrite the value if it is already set.- Overrides:
timeZoneDefaultin classMarshallingSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new value for this property.
Ifnull , then the time zone defined on the context is used.- Returns:
- This object.
-
unmodifiable
Description copied from class:ContextSession.BuilderCreate an unmodifiable session.The created ContextSession object will be unmodifiable which makes it suitable for caching and reuse.
- Overrides:
unmodifiablein classContextSession.Builder<RdfStreamSerializerSession.Builder>- Returns:
- This object.
-
uriContext
Description copied from class:SerializerSession.BuilderURI context bean.Bean used for resolution of URIs to absolute or root-relative form.
If not specified, defaults to
Serializer.Builder.uriContext(UriContext).- Overrides:
uriContextin classSerializerSession.Builder<RdfStreamSerializerSession.Builder>- Parameters:
value- The new property value.
Can benull (value will not be set, defaults toSerializer.Builder.uriContext(UriContext)from context).- Returns:
- This object.
-