com.isomorphic.servlet

## Class BaseServlet

- java.lang.Object
- - javax.servlet.GenericServlet
  - - javax.servlet.http.HttpServlet
    - - com.isomorphic.servlet.BaseServlet

- Direct Known Subclasses:
    DataSourceLoader, FeatureExplorerRPC, FileAssembly, FileDownload, HSQLShutdown, HttpProxyServlet, IDACall, MessagingServlet, PreCache, RESTHandler, ScreenLoaderServlet

      public class BaseServlet
      extends javax.servlet.http.HttpServlet

  BaseServlet is extended by most servlets in the Isomorphic Framework, as it provides:
  - standard global variables in a safe manner to subclasses
  - support for servlet container-based filesystem access
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handleError(javax.servlet.http.HttpServletResponse response, java.lang.String errorMessage, java.lang.Throwable t)` Convenience method for handling unrecoverable errors.
    `void` | `handleError(javax.servlet.http.HttpServletResponse response, java.lang.Throwable t)` Overload for `BaseServlet.handleError(HttpServletResponse, String, Throwable)`

- - ### Method Detail

    - #### handleError

          public void handleError(javax.servlet.http.HttpServletResponse response,
                                  java.lang.Throwable t)

      Overload for `BaseServlet.handleError(HttpServletResponse, String, Throwable)`

    - #### handleError

          public void handleError(javax.servlet.http.HttpServletResponse response,
                                  java.lang.String errorMessage,
                                  java.lang.Throwable t)

      Convenience method for handling unrecoverable errors. The error message of provided `Throwable` will be written to provided HTTP response. If `servlet.sendStackTraceToClient` framework setting is `true` then `stacktrace` will also be included.

      Error with additionally provided `errorMessage` and `stacktrace` will be printed to log as well.

      Parameters:
        `response` - HTTP response
        `errorMessage` - error message for logging only
        `t` - error to write