| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface OutputStreamAdapter
Interface for adapting the output stream
| Method Summary | |
|---|---|
|  java.io.OutputStream | adapt(java.io.OutputStream os,
      ClientRequest request)This method is called in order to wrap the request output stream with another output stream to allow the manipulation of the request entity stream. | 
| Method Detail | 
|---|
java.io.OutputStream adapt(java.io.OutputStream os,
                           ClientRequest request)
                           throws java.io.IOException
For example:
 public OutputStream adapt(OutputStream os, ClientRequest request) throws IOException {
     request.getHeaders().add("Content-Encoding", "gzip");
     return new GZIPOutputStream(os);
 }
 
os - the current request output streamrequest - the request
java.io.IOException| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||