Package org.apache.olingo.server.core
Class ODataWritableContent
java.lang.Object
org.apache.olingo.server.core.ODataWritableContent
- All Implemented Interfaces:
ODataContent
Stream supporting implementation of the ODataContent
and contains the response content for the OData request.
If an error occur during a
write method NO exception
will be thrown but if registered the
org.apache.olingo.server.api.ODataContentWriteErrorCallback is called.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionwith(InputStream inputStream, FixedFormatSerializerImpl fixedFormatSerializer) with(AbstractEntityCollectionObject entitySet, EdmEntityType entityType, ODataSerializer serializer, ServiceMetadata metadata, EntityCollectionSerializerOptions options) with(EntityMediaObject mediaEntity, FixedFormatSerializerImpl fixedFormatSerializer) voidwrite(OutputStream stream) Write the available content into the givenOutputStream.voidwrite(WritableByteChannel writeChannel) Write the available content into the givenWritableByteChannel.
-
Method Details
-
write
Description copied from interface:ODataContentWrite the available content into the givenWritableByteChannel. If during write of the content an exception is thrown this exception will be catched and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).- Specified by:
writein interfaceODataContent- Parameters:
writeChannel- channel in which the content is written.
-
write
Description copied from interface:ODataContentWrite the available content into the givenOutputStream. If during write of the content an exception is thrown this exception will be catched and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).- Specified by:
writein interfaceODataContent- Parameters:
stream- stream in which the content is written.
-
with
public static ODataWritableContent.ODataWritableContentBuilder with(AbstractEntityCollectionObject entitySet, EdmEntityType entityType, ODataSerializer serializer, ServiceMetadata metadata, EntityCollectionSerializerOptions options) -
with
public static ODataWritableContent.ODataWritableContentBuilder with(EntityMediaObject mediaEntity, FixedFormatSerializerImpl fixedFormatSerializer) -
with
public static ODataWritableContent.ODataWritableContentBuilder with(InputStream inputStream, FixedFormatSerializerImpl fixedFormatSerializer)
-