Class AuthorizedServlet

  • All Implemented Interfaces:
    TransactionFilter, edu.uiuc.ncsa.security.core.Logable, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public abstract class AuthorizedServlet
    extends CRServlet
    For deployment in cases that there is a wholly external authorization webapp. That webapp makes a call to this servlet following a specific mini-protocol and the response from this servlet contains the redirect url which must then cause a redirect in the user's browser.

    Created by Jeff Gaynor on 2/13/14 at 3:24 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • AuthorizedServlet

        public AuthorizedServlet()
    • Method Detail

      • parseRequest

        protected abstract AuthorizedServlet.ProtocolParameters parseRequest​(javax.servlet.http.HttpServletRequest request)
                                                                      throws javax.servlet.ServletException
        This will take the HTTP request and parse it into parameters. This method is the one to override if you have tweaks to the basic protocol.
        Parameters:
        request -
        Returns:
        Throws:
        javax.servlet.ServletException
      • doIt

        protected void doIt​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws Throwable
        Specified by:
        doIt in class edu.uiuc.ncsa.security.servlet.AbstractServlet
        Throws:
        Throwable
      • writeResponse

        protected void writeResponse​(javax.servlet.http.HttpServletResponse response,
                                     ServiceTransaction transaction)
                              throws IOException
        Write the response to the output stream and returns the callback that was generated, if there is one.
        Parameters:
        response -
        transaction -
        Throws:
        IOException