|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface MessageBodyWorkers.MessageBodySizeCallback
Callback which will be used to pass back the size of the entity. It will be invoked
in method
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.
| Method Summary | |
|---|---|
void |
onRequestEntitySize(long size)
Called when the size of the request entity is obtained. |
| Method Detail |
|---|
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 fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||