Package org.keycloak.http
Interface HttpResponse
-
public interface HttpResponseRepresents an out coming HTTP response.
Instances of this class can be obtained from
KeycloakContext.getHttpResponse().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHeader(String name, String value)Add a value to the current list of values for the header with the givenname.voidsetHeader(String name, String value)Set a header.voidsetStatus(int statusCode)Sets a status code.
-
-
-
Method Detail
-
setStatus
void setStatus(int statusCode)
Sets a status code.- Parameters:
statusCode- the status code
-
addHeader
void addHeader(String name, String value)
Add a value to the current list of values for the header with the givenname.- Parameters:
name- the header namevalue- the header value
-
-