Class EntityCollectionSerializerOptions.Builder
java.lang.Object
org.apache.olingo.server.api.serializer.EntityCollectionSerializerOptions.Builder
- Enclosing class:
- EntityCollectionSerializerOptions
Builder of OData serializer options.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the OData serializer options.contextURL
(ContextURL contextURL) Sets theContextURL
.count
(CountOption count) Sets the $count system query option.expand
(ExpandOption expand) Sets the $expand system query option.Sets id of the collectionisFullRepresentation
(boolean isFullRepresentation) sets isFullRepresentation to represent inline entriesselect
(SelectOption select) Sets the $select system query option.writeContentErrorCallback
(ODataContentWriteErrorCallback ODataContentWriteErrorCallback) Set the callback which is used in case of an exception during write of the content.writeOnlyReferences
(boolean ref) Sets to serialize only referencesxml10InvalidCharReplacement
(String replacement) set the replacement String for xml 1.0 unicode controlled characters that are not allowed
-
Method Details
-
contextURL
Sets theContextURL
. -
count
Sets the $count system query option. -
expand
Sets the $expand system query option. -
select
Sets the $select system query option. -
writeOnlyReferences
Sets to serialize only references -
id
Sets id of the collection -
writeContentErrorCallback
public EntityCollectionSerializerOptions.Builder writeContentErrorCallback(ODataContentWriteErrorCallback ODataContentWriteErrorCallback) Set the callback which is used in case of an exception during write of the content.- Parameters:
ODataContentWriteErrorCallback
- the callback- Returns:
- the builder
-
xml10InvalidCharReplacement
set the replacement String for xml 1.0 unicode controlled characters that are not allowed -
isFullRepresentation
sets isFullRepresentation to represent inline entries -
build
Builds the OData serializer options.
-