Class BeanSession.Builder
- Direct Known Subclasses:
- BeanTraverseSession.Builder,- ParserSession.Builder
- Enclosing class:
- BeanSession
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionApplies a consumer to this builder if it's the specified type.build()Build the object.Debug mode.The session locale.localeDefault(Locale value) Same aslocale(Locale)but doesn't overwrite the value if it is already set.The session media type.mediaTypeDefault(MediaType value) Same asmediaType(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.The session timezone.timeZoneDefault(TimeZone value) Same astimeZone(TimeZone)but doesn't overwrite the value if it is already set.Create an unmodifiable session.
- 
Constructor Details- 
BuilderConstructor- Parameters:
- ctx- The context creating this session.
 
 
- 
- 
Method Details- 
buildBuild the object.- Specified by:
- buildin class- ContextSession.Builder
- Returns:
- The built object.
 
- 
localeThe session locale.Specifies the default locale for serializer and parser sessions. If not specified, defaults to BeanContext.Builder.locale(Locale).See Also:- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
localeDefaultSame aslocale(Locale)but doesn't overwrite the value if it is already set.- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
mediaTypeThe session media type.Specifies the default media type value for serializer and parser sessions. If not specified, defaults to BeanContext.Builder.mediaType(MediaType).See Also:- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
mediaTypeDefaultSame asmediaType(MediaType)but doesn't overwrite the value if it is already set.- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
timeZoneThe session timezone.Specifies the default timezone for serializer and parser sessions. If not specified, defaults to BeanContext.Builder.timeZone(TimeZone).See Also:- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
timeZoneDefaultSame astimeZone(TimeZone)but doesn't overwrite the value if it is already set.- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
applyDescription copied from class:ContextSession.BuilderApplies a consumer to this builder if it's the specified type.- Overrides:
- applyin class- ContextSession.Builder
- Type Parameters:
- T- The expected type.
- Parameters:
- type- The expected type.
- apply- The consumer to apply.
- Returns:
- This object.
 
- 
debugDescription 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 class- ContextSession.Builder
- Parameters:
- value- The new value for this property.
 Can be- null . Value will be ignored.
- Returns:
- This object.
 
- 
propertiesDescription 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 class- ContextSession.Builder
- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
propertyDescription copied from class:ContextSession.BuilderAdds a property to this session.- Overrides:
- propertyin class- ContextSession.Builder
- Parameters:
- key- The property key.
- value- The property value.
- Returns:
- This object.
 
- 
unmodifiableDescription 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 class- ContextSession.Builder
- Returns:
- This object.
 
 
-