Package org.wildfly.security.http
Interface HttpServerResponse
- 
- All Known Implementing Classes:
- HttpAuthenticator.AuthenticationExchange
 
 public interface HttpServerResponseServer side representation of a HTTP response.- Author:
- Darran Lofthouse
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddResponseHeader(String headerName, String headerValue)Add the specified header and value to the end of the current response headers,booleanforward(String path)Forward the current request to a different path.OutputStreamgetOutputStream()Returns the output stream.voidsetResponseCookie(HttpServerCookie cookie)Sets a response cookievoidsetStatusCode(int statusCode)Set the desired status code for the current request.
 
- 
- 
- 
Method Detail- 
addResponseHeadervoid addResponseHeader(String headerName, String headerValue) Add the specified header and value to the end of the current response headers,- Parameters:
- headerName- the name of the header.
- headerValue- the value of the header.
 
 - 
setStatusCodevoid setStatusCode(int statusCode) Set the desired status code for the current request. Note: If multiple mechanisms call this method then a resolution process will begin to decide which one to use.- Parameters:
- statusCode- the response code.
 
 - 
setResponseCookievoid setResponseCookie(HttpServerCookie cookie) Sets a response cookie- Parameters:
- cookie- the cookie
 
 - 
getOutputStreamOutputStream getOutputStream() Returns the output stream.- Returns:
- the output stream or nullif not supported.
 
 - 
forwardboolean forward(String path) Forward the current request to a different path.- Returns:
- trueif forwarding was supported and successful,- falseotherwise.
 
 
- 
 
-