Class AbstractRegistrationServlet

    • Constructor Detail

      • AbstractRegistrationServlet

        public AbstractRegistrationServlet()
    • Method Detail

      • getState

        public int getState​(javax.servlet.http.HttpServletRequest request)
      • fireNewClientEvent

        protected void fireNewClientEvent​(NewClientEvent newClientEvent)
      • prepare

        public void prepare​(edu.uiuc.ncsa.security.servlet.PresentableState state)
                     throws Throwable
        Specified by:
        prepare in interface edu.uiuc.ncsa.security.servlet.Presentable
        Throws:
        Throwable
      • getInitPage

        protected String getInitPage()
      • getErrorPage

        protected String getErrorPage()
      • getOKPage

        protected String getOKPage()
      • present

        public void present​(edu.uiuc.ncsa.security.servlet.PresentableState state)
                     throws Throwable
        Specified by:
        present in interface edu.uiuc.ncsa.security.servlet.Presentable
        Throws:
        Throwable
      • handleError

        public void handleError​(edu.uiuc.ncsa.security.servlet.PresentableState state,
                                Throwable t)
                         throws IOException,
                                javax.servlet.ServletException
        Specified by:
        handleError in interface edu.uiuc.ncsa.security.servlet.Presentable
        Throws:
        IOException
        javax.servlet.ServletException
      • getValueTag

        protected String getValueTag​(String key)
        For a key (e.g. clientName) the associated form value is usually name+"Value" (e.g. clientNameValue). This method creates these value tags.
        Parameters:
        key -
        Returns:
      • 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
      • save

        protected void save​(BaseClient client)
      • setRetryParameters

        protected void setRetryParameters​(javax.servlet.http.HttpServletRequest request,
                                          edu.uiuc.ncsa.security.core.exceptions.RetryException r)
        Sets the parameters from the request so they can be passed back.
        Parameters:
        request -
        r -
      • getParameter

        protected String getParameter​(javax.servlet.http.HttpServletRequest req,
                                      String key)
      • getRequiredParam

        protected String getRequiredParam​(javax.servlet.http.HttpServletRequest req,
                                          String key,
                                          BaseClient client)
      • setupNewClient

        protected BaseClient setupNewClient​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws Throwable
        Throws:
        Throwable
      • addNewClient

        protected BaseClient addNewClient​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws Throwable
        Throws:
        Throwable