Class AhcWebSocketConduit.AhcWebSocketWrappedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.cxf.io.AbstractWrappedOutputStream
-
- org.apache.cxf.io.AbstractThresholdOutputStream
-
- org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
-
- org.apache.cxf.transport.websocket.ahc.AhcWebSocketConduit.AhcWebSocketWrappedOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- AhcWebSocketConduit
public class AhcWebSocketConduit.AhcWebSocketWrappedOutputStream extends HTTPConduit.WrappedOutputStream
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
cachedStream, cachingForRetransmission, chunking, conduitName, outMessage, url
-
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
Constructors Modifier Constructor Description protectedAhcWebSocketWrappedOutputStream(Message message, boolean possibleRetransmit, boolean isChunking, int chunkThreshold, String conduitName, URI url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseInputStream()protected voidconnect()protected HttpsURLConnectionInfogetHttpsURLConnectionInfo()protected InputStreamgetInputStream()protected InputStreamgetPartialResponse()protected intgetResponseCode()protected StringgetResponseMessage()protected voidhandleNoOutput()protected voidhandleResponseAsync()protected voidretransmitStream()protected voidsetFixedLengthStreamingMode(int i)protected voidsetProtocolHeaders()protected voidsetupNewConnection(String newURL)protected voidsetupWrappedStream()voidthresholdReached()protected voidupdateCookiesBeforeRetransmit()protected voidupdateResponseHeaders(Message inMessage)protected booleanusingProxy()-
Methods inherited from class org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
authorizationRetransmit, close, doProcessResponseCode, getExceptionMessage, getMethod, handleHeadersTrustCaching, handleHttpRetryException, handleResponse, handleResponseInternal, handleResponseOnWorkqueue, handleRetransmits, makeTrustDecision, onFirstWrite, processRetransmit, propagateConduit, redirectRetransmit, retransmit, thresholdNotReached
-
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.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
setupWrappedStream
protected void setupWrappedStream() throws IOException- Specified by:
setupWrappedStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleNoOutput
protected void handleNoOutput() throws IOException- Overrides:
handleNoOutputin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getHttpsURLConnectionInfo
protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException
- Specified by:
getHttpsURLConnectionInfoin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setProtocolHeaders
protected void setProtocolHeaders() throws IOException- Specified by:
setProtocolHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setFixedLengthStreamingMode
protected void setFixedLengthStreamingMode(int i)
- Specified by:
setFixedLengthStreamingModein classHTTPConduit.WrappedOutputStream
-
getResponseCode
protected int getResponseCode() throws IOException- Specified by:
getResponseCodein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getResponseMessage
protected String getResponseMessage() throws IOException
- Specified by:
getResponseMessagein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateResponseHeaders
protected void updateResponseHeaders(Message inMessage) throws IOException
- Specified by:
updateResponseHeadersin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
handleResponseAsync
protected void handleResponseAsync() throws IOException- Specified by:
handleResponseAsyncin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
closeInputStream
protected void closeInputStream() throws IOException- Specified by:
closeInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
usingProxy
protected boolean usingProxy()
- Specified by:
usingProxyin classHTTPConduit.WrappedOutputStream
-
getInputStream
protected InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
getPartialResponse
protected InputStream getPartialResponse() throws IOException
- Specified by:
getPartialResponsein classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
setupNewConnection
protected void setupNewConnection(String newURL) throws IOException
- Specified by:
setupNewConnectionin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
retransmitStream
protected void retransmitStream() throws IOException- Specified by:
retransmitStreamin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
updateCookiesBeforeRetransmit
protected void updateCookiesBeforeRetransmit() throws IOException- Specified by:
updateCookiesBeforeRetransmitin classHTTPConduit.WrappedOutputStream- Throws:
IOException
-
thresholdReached
public void thresholdReached() throws IOException- Specified by:
thresholdReachedin classAbstractThresholdOutputStream- Throws:
IOException
-
connect
protected void connect()
-
-