Class ReaderParserSession.Builder
- Direct Known Subclasses:
- CsvParserSession.Builder,- JsonParserSession.Builder,- PlainTextParserSession.Builder,- UonParserSession.Builder,- XmlParserSession.Builder
- Enclosing class:
- ReaderParserSession
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionApplies a consumer to this builder if it's the specified type.build()Build the object.Debug mode.fileCharset(Charset value) File charset.javaMethod(Method value) The java method that called this serializer, usually the method in a REST servlet.The session locale.localeDefault(Locale value) Same asBeanSession.Builder.locale(Locale)but doesn't overwrite the value if it is already set.The session media type.mediaTypeDefault(MediaType value) Same asBeanSession.Builder.mediaType(MediaType)but doesn't overwrite the value if it is already set.The outer object for instantiating top-level non-static inner classes.properties(Map<String, Object> value) Session properties.Adds a property to this session.schema(HttpPartSchema value) HTTP-part schema.schemaDefault(HttpPartSchema value) Same asParserSession.Builder.schema(HttpPartSchema)but doesn't overwrite the value if it is already set.streamCharset(Charset value) Input stream charset.The session timezone.timeZoneDefault(TimeZone value) Same asBeanSession.Builder.timeZone(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- 
buildDescription copied from class:BeanSession.BuilderBuild the object.- Overrides:
- buildin class- ParserSession.Builder
- Returns:
- The built object.
 
- 
fileCharsetFile charset.The character set to use for reading Files from the file system. Used when passing in files to Parser.parse(Object, Class).If not specified, defaults to the JVM system default charset. - Parameters:
- value- The new property value.
 Can be- null .
- Returns:
- This object.
 
- 
streamCharsetInput stream charset.The character set to use for converting InputStreams and byte arrays to readers. Used when passing in input streams and byte arrays to Parser.parse(Object, Class).If not specified, defaults to UTF-8. - Parameters:
- value- The new property value.
 Can be- null .
- Returns:
- This object.
 
- 
applyDescription copied from class:ContextSession.BuilderApplies a consumer to this builder if it's the specified type.- Overrides:
- applyin class- ParserSession.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- ParserSession.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- ParserSession.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- ParserSession.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- ParserSession.Builder
- Returns:
- This object.
 
- 
localeDescription copied from class:BeanSession.BuilderThe session locale.Specifies the default locale for serializer and parser sessions. If not specified, defaults to BeanContext.Builder.locale(Locale).See Also:- Overrides:
- localein class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
localeDefaultDescription copied from class:BeanSession.BuilderSame asBeanSession.Builder.locale(Locale)but doesn't overwrite the value if it is already set.- Overrides:
- localeDefaultin class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
mediaTypeDescription copied from class:BeanSession.BuilderThe 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:- Overrides:
- mediaTypein class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
mediaTypeDefaultDescription copied from class:BeanSession.BuilderSame asBeanSession.Builder.mediaType(MediaType)but doesn't overwrite the value if it is already set.- Overrides:
- mediaTypeDefaultin class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
timeZoneDescription copied from class:BeanSession.BuilderThe session timezone.Specifies the default timezone for serializer and parser sessions. If not specified, defaults to BeanContext.Builder.timeZone(TimeZone).See Also:- Overrides:
- timeZonein class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
timeZoneDefaultDescription copied from class:BeanSession.BuilderSame asBeanSession.Builder.timeZone(TimeZone)but doesn't overwrite the value if it is already set.- Overrides:
- timeZoneDefaultin class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
- 
javaMethodDescription copied from class:ParserSession.BuilderThe java method that called this serializer, usually the method in a REST servlet.- Overrides:
- javaMethodin class- ParserSession.Builder
- Parameters:
- value- The new property value.
 Can be- null .
- Returns:
- This object.
 
- 
outerDescription copied from class:ParserSession.BuilderThe outer object for instantiating top-level non-static inner classes.- Overrides:
- outerin class- ParserSession.Builder
- Parameters:
- value- The new property value.
 Can be- null .
- Returns:
- This object.
 
- 
schemaDescription copied from class:ParserSession.BuilderHTTP-part schema.Used for schema-based serializers and parsers to define additional formatting. - Overrides:
- schemain class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 Can be- null .
- Returns:
- This object.
 
- 
schemaDefaultDescription copied from class:ParserSession.BuilderSame asParserSession.Builder.schema(HttpPartSchema)but doesn't overwrite the value if it is already set.- Overrides:
- schemaDefaultin class- ParserSession.Builder
- Parameters:
- value- The new value for this property.
 If- null , then the locale defined on the context is used.
- Returns:
- This object.
 
 
-