Module cloud.piranha.http.webapp
Package cloud.piranha.http.webapp
Class HttpWebApplicationOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
cloud.piranha.core.api.WebApplicationOutputStream
cloud.piranha.core.impl.DefaultWebApplicationOutputStream
cloud.piranha.http.webapp.HttpWebApplicationOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,Runnable
The HttpWebApplication variant of WebApplicationOutputStream.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
Fields inherited from class cloud.piranha.core.impl.DefaultWebApplicationOutputStream
buffer, closed, index, outputStream, response, writeListener, writeListenerLock
-
Constructor Summary
ConstructorDescriptionHttpWebApplicationOutputStream
(WebApplicationResponse response, HttpServerResponse httpServerResponse) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Write out the headers.void
Write out the status line.Methods inherited from class cloud.piranha.core.impl.DefaultWebApplicationOutputStream
flush, flushBuffer, getBufferSize, getOutputStream, getResponse, getWriteListener, isReady, resetBuffer, run, setBufferSize, setOutputStream, setResponse, setWriteListener, write
Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
HttpWebApplicationOutputStream
public HttpWebApplicationOutputStream(WebApplicationResponse response, HttpServerResponse httpServerResponse) Constructor.- Parameters:
response
- the WebApplicationResponse.httpServerResponse
- the HttpServerResponse.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classDefaultWebApplicationOutputStream
- Throws:
IOException
-
writeStatusLine
Description copied from class:DefaultWebApplicationOutputStream
Write out the status line.- Overrides:
writeStatusLine
in classDefaultWebApplicationOutputStream
- Throws:
IOException
- when an I/O error occurs.
-
writeHeaders
Description copied from class:DefaultWebApplicationOutputStream
Write out the headers.- Overrides:
writeHeaders
in classDefaultWebApplicationOutputStream
- Throws:
IOException
- when an I/O error occurs.
-