org.glassfish.jersey.client
Interface RequestWriter.RequestEntityWriterListener

All Superinterfaces:
MessageBodyWorkers.MessageBodySizeCallback
Enclosing class:
RequestWriter

protected static interface RequestWriter.RequestEntityWriterListener
extends MessageBodyWorkers.MessageBodySizeCallback

A listener for listening to events when writing a request entity.


Method Summary
 OutboundMessageContext.StreamProvider onGetStreamProvider()
          Called when the output stream is required to write the request entity.
 
Methods inherited from interface org.glassfish.jersey.message.MessageBodyWorkers.MessageBodySizeCallback
onRequestEntitySize
 

Method Detail

onGetStreamProvider

OutboundMessageContext.StreamProvider onGetStreamProvider()
                                                          throws java.io.IOException
Called when the output stream is required to write the request entity.

Returns:
the output stream provider for writing the request entity.
Throws:
java.io.IOException - in case of an error while opening the output stream.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.