Package org.keycloak.services
Class HttpResponseImpl
java.lang.Object
org.keycloak.services.HttpResponseImpl
- All Implemented Interfaces:
 HttpResponse
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a value to the current list of values for the header with the givenname.intGets a status code.voidsetCookieIfAbsent(jakarta.ws.rs.core.NewCookie newCookie) Sets a new cookie only if not yet set.voidSet a header.voidsetStatus(int statusCode) Sets a status code.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.http.HttpResponse
setCookieIfAbsent 
- 
Constructor Details
- 
HttpResponseImpl
public HttpResponseImpl(org.jboss.resteasy.spi.HttpResponse delegate)  
 - 
 - 
Method Details
- 
getStatus
public int getStatus()Description copied from interface:HttpResponseGets a status code.- Specified by:
 getStatusin interfaceHttpResponse
 - 
setStatus
public void setStatus(int statusCode) Description copied from interface:HttpResponseSets a status code.- Specified by:
 setStatusin interfaceHttpResponse- Parameters:
 statusCode- the status code
 - 
addHeader
Description copied from interface:HttpResponseAdd a value to the current list of values for the header with the givenname.- Specified by:
 addHeaderin interfaceHttpResponse- Parameters:
 name- the header namevalue- the header value
 - 
setHeader
Description copied from interface:HttpResponseSet a header. Any existing values will be replaced.- Specified by:
 setHeaderin interfaceHttpResponse- Parameters:
 name- the header namevalue- the header value
 - 
setCookieIfAbsent
public void setCookieIfAbsent(jakarta.ws.rs.core.NewCookie newCookie) Description copied from interface:HttpResponseSets a new cookie only if not yet set.- Specified by:
 setCookieIfAbsentin interfaceHttpResponse- Parameters:
 newCookie- the cookie
 
 -