com.ibm.security.access.extension.authn.message

Interface Response



  • public interface Response
    This interface represents the response of the current user interaction.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addCookie(Cookie cookie)
      Add the specified cookie.
      void setBody(java.io.InputStream body)
      Set the body.
      void setHeader(java.lang.String name, java.lang.String value)
      Set the value of the header with the specified name with the specified value.
      void setHeaders(java.lang.String name, java.util.List<java.lang.String> values)
      Set the value list of the header with the specified name with the specified value list.
      void setStatus(int status)
      Set the status.
    • Method Detail

      • setStatus

        void setStatus(int status)
        Set the status. Example of statuses are 200, 400, and 500.
        Parameters:
        status - The status.
      • setHeader

        void setHeader(java.lang.String name,
                       java.lang.String value)
        Set the value of the header with the specified name with the specified value.
        Parameters:
        name - The name.
        value - The value.
      • setHeaders

        void setHeaders(java.lang.String name,
                        java.util.List<java.lang.String> values)
        Set the value list of the header with the specified name with the specified value list.
        Parameters:
        name - The name.
        values - The value list.
      • addCookie

        void addCookie(Cookie cookie)
        Add the specified cookie.
        Parameters:
        cookie - The cookie.
      • setBody

        void setBody(java.io.InputStream body)
        Set the body.
        Parameters:
        body - The body.