Class LambdaServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.illumon.util.jettyhelper.LambdaServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LambdaServlet
extends javax.servlet.http.HttpServlet
Class to provide servlet capabilities for Jetty servers, including authentication if required When requested, authentication is performed through both the authentication server and the Iris group provider. The user will be authenticated through the Iris auth server by username/password, and be a member of the appropriate group. Two groups are allowed, iris-webviewers and mainClassName.iris-webviewers, where mainClassName is passed in at construction time (it usually corresponds to the class providing web services, such as RemoteQueryDispatcher or DataImportServer). If the user is a member of either group, they can access the provided services.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    LambdaServlet​(com.fishlib.io.logger.Logger log, Supplier<String> lambda, String mainClassName, boolean authenticationRequired, IrisGroupProvider irisGroupProvider, JettyServerHelper jettyServerHelper, String lambdaName)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LambdaServlet

      public LambdaServlet​(com.fishlib.io.logger.Logger log, Supplier<String> lambda, String mainClassName, boolean authenticationRequired, IrisGroupProvider irisGroupProvider, JettyServerHelper jettyServerHelper, String lambdaName)
      Constructor
      Parameters:
      log - the Logger instance
      lambda - the action to perform
      mainClassName - the main class name, used for group validation
      authenticationRequired - if true, then authentication is required to perform any actions
      irisGroupProvider - the IrisGroupProvider if authentication is required
  • Method Details

    • doGet

      protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      IOException