| 
||||||||||
| 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 | |
|---|---|
 OutputStream | 
adapt(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 | 
|---|
OutputStream adapt(OutputStream os,
                   ClientRequest request)
                   throws 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
IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||