parent
4d9e23700c
commit
d73298aab6
2 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,10 @@ package org.keycloak.http;
|
||||||
* <p>Instances of this class can be obtained from {@link org.keycloak.models.KeycloakContext#getHttpResponse}.
|
* <p>Instances of this class can be obtained from {@link org.keycloak.models.KeycloakContext#getHttpResponse}.
|
||||||
*/
|
*/
|
||||||
public interface HttpResponse {
|
public interface HttpResponse {
|
||||||
|
/**
|
||||||
|
* Gets a status code.
|
||||||
|
*/
|
||||||
|
int getStatus();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a status code.
|
* Sets a status code.
|
||||||
|
|
|
@ -39,6 +39,11 @@ public class HttpResponseImpl implements HttpResponse, KeycloakTransaction {
|
||||||
session.getTransactionManager().enlistAfterCompletion(this);
|
session.getTransactionManager().enlistAfterCompletion(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getStatus() {
|
||||||
|
return delegate.getStatus();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setStatus(int statusCode) {
|
public void setStatus(int statusCode) {
|
||||||
delegate.setStatus(statusCode);
|
delegate.setStatus(statusCode);
|
||||||
|
|
Loading…
Reference in a new issue