org.glassfish.jersey.client
Interface RequestWriter.RequestEntityWriter
- Enclosing class:
- RequestWriter
protected static interface RequestWriter.RequestEntityWriter
A writer for writing a request entity.
getSize
long getSize()
- Returns:
- size the size, in bytes, of the request entity, otherwise -1
if the size cannot be determined before serialization.
getMediaType
javax.ws.rs.core.MediaType getMediaType()
- Returns:
- the media type of the request entity.
writeRequestEntity
void writeRequestEntity(OutputStream out)
throws IOException
- Write the request entity.
- Parameters:
out - the output stream to write the request entity.
- Throws:
IOException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.