mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
parent
4d9e23700c
commit
d73298aab6
@ -23,6 +23,10 @@ package org.keycloak.http;
|
||||
* <p>Instances of this class can be obtained from {@link org.keycloak.models.KeycloakContext#getHttpResponse}.
|
||||
*/
|
||||
public interface HttpResponse {
|
||||
/**
|
||||
* Gets a status code.
|
||||
*/
|
||||
int getStatus();
|
||||
|
||||
/**
|
||||
* Sets a status code.
|
||||
|
||||
@ -39,6 +39,11 @@ public class HttpResponseImpl implements HttpResponse, KeycloakTransaction {
|
||||
session.getTransactionManager().enlistAfterCompletion(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStatus() {
|
||||
return delegate.getStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatus(int statusCode) {
|
||||
delegate.setStatus(statusCode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user