Class ServletHttpResponse
java.lang.Object
org.keycloak.adapters.authorization.integration.elytron.ServletHttpResponse
- All Implemented Interfaces:
HttpResponse
- Author:
- Pedro Igor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ServletHttpResponse
public ServletHttpResponse(jakarta.servlet.http.HttpServletResponse response)
-
-
Method Details
-
sendError
public void sendError(int status) Description copied from interface:HttpResponseSend an error with the givenstatusCode.- Specified by:
sendErrorin interfaceHttpResponse- Parameters:
status- the status to set in the response
-
sendError
Description copied from interface:HttpResponseSend an error with the givenstatusCodeandreasonmessage.- Specified by:
sendErrorin interfaceHttpResponse- Parameters:
status- the status to set in the response
-
setHeader
Description copied from interface:HttpResponseSet a header with the givennameandvalue.- Specified by:
setHeaderin interfaceHttpResponse- Parameters:
name- the header namevalue- the header value
-