public interface ODataContentWriteErrorCallback
ODataContent.write(OutputStream)
or the ODataContent.write(WritableByteChannel)
an error occurs.Modifier and Type | Method and Description |
---|---|
void |
handleError(ODataContentWriteErrorContext context,
WritableByteChannel channel)
Is called when during write in the ODataContent an error occurs.
|
void handleError(ODataContentWriteErrorContext context, WritableByteChannel channel)
context:ODataContentWriteErrorContext
contains all relevant information
and the channel
is the channel (stream) in which before was written.
This channel is at this point not closed and can be used to write additional information.
ATTENTION: This channel MUST NOT be closed by the callback. It will be closed by the
layer responsible for the environment / data transfer (e.g. application server).context
- contains all relevant error informationchannel
- is the channel (stream) in which before was writtenCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.