Class SASServlet

    • Constructor Detail

      • SASServlet

        public SASServlet()
    • Method Detail

      • loadEnvironment

        public void loadEnvironment()
                             throws IOException
        Description copied from class: AbstractServlet
        Loads the current environment. This is *not* called automatically. Usually a user will create a custom environment and have a getter for that which checks if the environment has been set and if not, load it or if so, cast it and return the result.
        Specified by:
        loadEnvironment in class AbstractServlet
        Throws:
        IOException
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest httpServletRequest,
                          javax.servlet.http.HttpServletResponse httpServletResponse)
                   throws javax.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class AbstractServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • createExecutable

        public Executable createExecutable​(String executableName)
        Create the appropriate executable.
        Parameters:
        executableName - name to allow you to choose which executable to create
        Returns:
      • doDelete

        protected void doDelete​(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse resp)
                         throws javax.servlet.ServletException,
                                IOException
        Overrides:
        doDelete in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse)
                    throws javax.servlet.ServletException,
                           IOException
        Overrides:
        doPost in class AbstractServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doIt

        protected void doIt​(javax.servlet.http.HttpServletRequest httpServletRequest,
                            javax.servlet.http.HttpServletResponse httpServletResponse)
                     throws Throwable
        Specified by:
        doIt in class AbstractServlet
        Throws:
        Throwable
      • handleException

        protected void handleException​(ExceptionHandlerThingie xh)
                                throws IOException,
                                       javax.servlet.ServletException
        Description copied from class: AbstractServlet
        One stop shopping for exception handling. All thrown exceptions are intercepted and run through this. Depending on their type they are wrapped or passed along. You can change this behavior if you need to.

        Note that all runtime exceptions, IOExceptions and ServletExceptions are not modified, so if you over-ride this and throw one of those exceptions you will not get extra cruft.

        Also, a response is passed along. This may be used in over-rides, but is not used in the basic implementation. If it is null, it should be ignored.

        Overrides:
        handleException in class AbstractServlet
        Throws:
        IOException
        javax.servlet.ServletException