protected static interface RequestWriter.RequestEntityWriterListener
The listener is registered when invoking the
TerminatingClientHandler#writeRequestEntity(com.sun.jersey.api.client.ClientRequest, com.sun.jersey.api.client.TerminatingClientHandler.RequestEntityWriterListener)
method.
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
onGetOutputStream()
Called when the output stream is required to write the request
entity.
|
void |
onRequestEntitySize(long size)
Called when the size of the request entity is obtained.
|
void onRequestEntitySize(long size) throws java.io.IOException
Enables the appropriate setting of HTTP headers for the size of the request entity and/or configure an appropriate transport encoding.
size
- the size, in bytes, of the request entity, otherwise -1
if the size cannot be determined before serialization.java.io.IOException
java.io.OutputStream onGetOutputStream() throws java.io.IOException
java.io.IOException
Copyright © 2016 Oracle Corporation. All Rights Reserved.