|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.client.RequestWriter
public class RequestWriter
A request writer for writing header values and a request entity.
| Nested Class Summary | |
|---|---|
protected static interface |
RequestWriter.RequestEntityWriter
A writer for writing a request entity. |
protected static interface |
RequestWriter.RequestEntityWriterListener
A listener for listening to events when writing a request entity. |
| Constructor Summary | |
|---|---|
RequestWriter()
Create new request writer. |
|
| Method Summary | |
|---|---|
protected RequestWriter.RequestEntityWriter |
getRequestEntityWriter(ClientRequest request)
Get a request entity writer capable of writing the request entity. |
protected void |
writeRequestEntity(ClientRequest requestContext,
RequestWriter.RequestEntityWriterListener listener)
Write a request entity using an appropriate message body writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestWriter()
| Method Detail |
|---|
protected RequestWriter.RequestEntityWriter getRequestEntityWriter(ClientRequest request)
request - the client request.
protected void writeRequestEntity(ClientRequest requestContext,
RequestWriter.RequestEntityWriterListener listener)
throws java.io.IOException
The method MessageBodyWorkers.MessageBodySizeCallback.onRequestEntitySize(long) will be invoked
with the size of the request entity to be serialized.
The method RequestWriter.RequestEntityWriterListener.onGetStreamProvider() will be invoked
when the output stream is required to write the request entity.
requestContext - the client request context containing the request entity. If the
request entity is null then the method will not write any entity.listener - the request entity listener.
java.io.IOException - in case of an IO error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||