Class DefaultResponse

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.principal.Response

    public class DefaultResponse
    extends java.lang.Object
    implements org.apereo.cas.authentication.principal.Response
    Encapsulates a Response to send back for a particular service.
    Since:
    3.1
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apereo.cas.authentication.principal.Response

        org.apereo.cas.authentication.principal.Response.ResponseType
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultResponse()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apereo.cas.authentication.principal.Response getHeaderResponse​(java.lang.String url, java.util.Map<java.lang.String,​java.lang.String> attributes)
      Gets header response.
      static org.apereo.cas.authentication.principal.Response getPostResponse​(java.lang.String url, java.util.Map<java.lang.String,​java.lang.String> attributes)
      Gets the post response.
      static org.apereo.cas.authentication.principal.Response getRedirectResponse​(java.lang.String url, java.util.Map<java.lang.String,​java.lang.String> parameters)
      Gets the redirect response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.principal.Response

        getAttributes, getResponseType, getUrl
    • Constructor Detail

      • DefaultResponse

        public DefaultResponse()
    • Method Detail

      • getPostResponse

        public static org.apereo.cas.authentication.principal.Response getPostResponse​(java.lang.String url,
                                                                                       java.util.Map<java.lang.String,​java.lang.String> attributes)
        Gets the post response.
        Parameters:
        url - the url
        attributes - the attributes
        Returns:
        the post response
      • getHeaderResponse

        public static org.apereo.cas.authentication.principal.Response getHeaderResponse​(java.lang.String url,
                                                                                         java.util.Map<java.lang.String,​java.lang.String> attributes)
        Gets header response.
        Parameters:
        url - the url
        attributes - the attributes
        Returns:
        the header response
      • getRedirectResponse

        public static org.apereo.cas.authentication.principal.Response getRedirectResponse​(java.lang.String url,
                                                                                           java.util.Map<java.lang.String,​java.lang.String> parameters)
        Gets the redirect response.
        Parameters:
        url - the url
        parameters - the parameters
        Returns:
        the redirect response