public class GrizzlyHttpServerResponse extends Object implements cloud.piranha.api.HttpServerResponse
| Constructor and Description |
|---|
GrizzlyHttpServerResponse(org.glassfish.grizzly.http.server.Response response)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Get the output stream.
|
void |
setHeader(String name,
String value)
Set the header.
|
void |
setStatus(int status)
Set the status.
|
void |
writeHeaders()
Write the headers.
|
void |
writeStatusLine()
Write the status line.
|
public GrizzlyHttpServerResponse(org.glassfish.grizzly.http.server.Response response)
response - the Grizzly response.public OutputStream getOutputStream()
getOutputStream in interface cloud.piranha.api.HttpServerResponsepublic void setHeader(String name, String value)
setHeader in interface cloud.piranha.api.HttpServerResponsename - the name.value - the value.public void setStatus(int status)
setStatus in interface cloud.piranha.api.HttpServerResponsestatus - the status.public void writeHeaders()
throws IOException
writeHeaders in interface cloud.piranha.api.HttpServerResponseIOException - when an I/O error occurs.public void writeStatusLine()
throws IOException
writeStatusLine in interface cloud.piranha.api.HttpServerResponseIOException - when an I/O error occurs.Copyright © 2020. All rights reserved.