|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.cxf.io.AbstractWrappedOutputStream
org.apache.cxf.io.AbstractThresholdOutputStream
org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
protected class HTTPConduit.WrappedOutputStream
Wrapper output stream responsible for flushing headers and handling the incoming HTTP-level response (not necessarily the MEP response).
| Field Summary | |
|---|---|
protected org.apache.cxf.io.CacheAndWriteOutputStream |
cachedStream
This field contains the output stream with which we cache the request. |
protected boolean |
cachingForRetransmission
This boolean is true if the request must be cached. |
protected boolean |
chunking
If we are going to be chunking, we won't flush till close which causes new chunks, small network packets, etc.. |
protected String |
conduitName
|
protected HttpURLConnection |
connection
This field contains the currently active connection. |
protected org.apache.cxf.message.Message |
outMessage
|
| Fields inherited from class org.apache.cxf.io.AbstractThresholdOutputStream |
|---|
buffer, threshold |
| Fields inherited from class org.apache.cxf.io.AbstractWrappedOutputStream |
|---|
allowFlush, wrappedStream, written |
| Constructor Summary | |
|---|---|
protected |
HTTPConduit.WrappedOutputStream(HTTPConduit.WrappedOutputStream wos)
|
protected |
HTTPConduit.WrappedOutputStream(org.apache.cxf.message.Message outMessage,
HttpURLConnection connection,
boolean possibleRetransmit,
boolean isChunking,
int chunkThreshold,
String conduitName)
|
| Method Summary | |
|---|---|
void |
close()
Perform any actions required on stream closure (handle response etc.) |
protected void |
handleHeadersTrustCaching()
|
protected void |
handleResponse()
This procedure is called on the close of the output stream so we are ready to handle the response from the connection. |
protected void |
handleResponseInternal()
|
protected void |
handleRetransmits()
This procedure handles all retransmits, if any. |
protected void |
onFirstWrite()
Perform any actions required on stream flush (freeze headers, reset output stream ... |
void |
thresholdNotReached()
|
void |
thresholdReached()
|
| Methods inherited from class org.apache.cxf.io.AbstractThresholdOutputStream |
|---|
unBuffer, write, write |
| Methods inherited from class org.apache.cxf.io.AbstractWrappedOutputStream |
|---|
allowFlush, flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpURLConnection connection
protected boolean cachingForRetransmission
protected final boolean chunking
protected org.apache.cxf.io.CacheAndWriteOutputStream cachedStream
protected org.apache.cxf.message.Message outMessage
protected String conduitName
| Constructor Detail |
|---|
protected HTTPConduit.WrappedOutputStream(org.apache.cxf.message.Message outMessage,
HttpURLConnection connection,
boolean possibleRetransmit,
boolean isChunking,
int chunkThreshold,
String conduitName)
protected HTTPConduit.WrappedOutputStream(HTTPConduit.WrappedOutputStream wos)
| Method Detail |
|---|
public void thresholdNotReached()
thresholdNotReached in class org.apache.cxf.io.AbstractThresholdOutputStreampublic void thresholdReached()
thresholdReached in class org.apache.cxf.io.AbstractThresholdOutputStream
protected void onFirstWrite()
throws IOException
onFirstWrite in class org.apache.cxf.io.AbstractWrappedOutputStreamIOException
protected void handleHeadersTrustCaching()
throws IOException
IOException
public void close()
throws IOException
close in interface Closeableclose in class org.apache.cxf.io.AbstractThresholdOutputStreamIOException
protected void handleRetransmits()
throws IOException
IOException
protected void handleResponse()
throws IOException
IOException
protected void handleResponseInternal()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||