public static interface MessageBodyWorkers.MessageBodySizeCallback
MessageBodyWorkers.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap,
PropertiesDelegate, OutputStream, MessageBodySizeCallback, boolean) and
MessageBodyWorkers.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap,
PropertiesDelegate, OutputStream, MessageBodySizeCallback, boolean, boolean) and
after selection of the message body writer and before
writing to the output stream.| Modifier and Type | Method and Description |
|---|---|
void |
onRequestEntitySize(long size)
Called when the size of the request entity is obtained.
|
void onRequestEntitySize(long size)
throws IOException
Enables the appropriate setting of HTTP headers for the size of the request entity and/or configure an appropriate transport encoding.
size - Size in bytes of the request
entity, otherwise -1 if the size cannot be determined before
serialization.IOException - When IO operations failCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.