Class HttpResponseImpl

java.lang.Object
org.keycloak.services.HttpResponseImpl
All Implemented Interfaces:
HttpResponse

public class HttpResponseImpl extends Object implements HttpResponse
  • Constructor Details

    • HttpResponseImpl

      public HttpResponseImpl(org.jboss.resteasy.spi.HttpResponse delegate)
  • Method Details

    • getStatus

      public int getStatus()
      Description copied from interface: HttpResponse
      Gets a status code.
      Specified by:
      getStatus in interface HttpResponse
    • setStatus

      public void setStatus(int statusCode)
      Description copied from interface: HttpResponse
      Sets a status code.
      Specified by:
      setStatus in interface HttpResponse
      Parameters:
      statusCode - the status code
    • addHeader

      public void addHeader(String name, String value)
      Description copied from interface: HttpResponse
      Add a value to the current list of values for the header with the given name.
      Specified by:
      addHeader in interface HttpResponse
      Parameters:
      name - the header name
      value - the header value
    • setHeader

      public void setHeader(String name, String value)
      Description copied from interface: HttpResponse
      Set a header. Any existing values will be replaced.
      Specified by:
      setHeader in interface HttpResponse
      Parameters:
      name - the header name
      value - the header value
    • setCookieIfAbsent

      public void setCookieIfAbsent(jakarta.ws.rs.core.NewCookie newCookie)
      Description copied from interface: HttpResponse
      Sets a new cookie only if not yet set.
      Specified by:
      setCookieIfAbsent in interface HttpResponse
      Parameters:
      newCookie - the cookie