Package io.undertow.servlet.spec
Class UpgradeServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
io.undertow.servlet.spec.UpgradeServletOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class UpgradeServletOutputStream
extends javax.servlet.ServletOutputStream
Output stream used for upgraded requests. This is different to
ServletOutputStreamImpl
as it does no buffering, and it not tied to an exchange.- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUpgradeServletOutputStream(org.xnio.channels.StreamSinkChannel channel, Executor ioExecutor) -
Method Summary
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UpgradeServletOutputStream
protected UpgradeServletOutputStream(org.xnio.channels.StreamSinkChannel channel, Executor ioExecutor)
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReadyin classjavax.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(javax.servlet.WriteListener writeListener) - Specified by:
setWriteListenerin classjavax.servlet.ServletOutputStream
-