public interface HttpServerResponse
Modifier and Type | Method and Description |
---|---|
void |
addResponseHeader(String headerName,
String headerValue)
Add the specified header and value to the end of the current response headers,
|
boolean |
forward(String path)
Forward the current request to a different path.
|
OutputStream |
getOutputStream()
Returns the output stream.
|
void |
setResponseCookie(HttpServerCookie cookie)
Sets a response cookie
|
void |
setStatusCode(int statusCode)
Set the desired status code for the current request.
|
void addResponseHeader(String headerName, String headerValue)
headerName
- the name of the header.headerValue
- the value of the header.void setStatusCode(int statusCode)
statusCode
- the response code.void setResponseCookie(HttpServerCookie cookie)
cookie
- the cookieOutputStream getOutputStream()
boolean forward(String path)
true
if forwarding was supported and successful, false
otherwise.Copyright © 2020 JBoss by Red Hat. All rights reserved.