Class UserAdminWebApiServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Filter, javax.servlet.Servlet, javax.servlet.ServletConfig, org.glassfish.jersey.server.spi.Container

    public class UserAdminWebApiServlet
    extends org.glassfish.jersey.servlet.ServletContainer
    This class will show ups a Servlet OSGi service, and will be picked up by the pax web whiteboard. The servlet will respond to several URLs and will provide functionality both for checking the login state, and for logging in a user
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.osgi.service.log.LogService logservice  
      private static long serialVersionUID  
      private no.priv.bang.osgiservice.users.UserManagementService usermanagement  
      • Fields inherited from interface org.glassfish.jersey.server.spi.Container

        DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      protected void init​(org.glassfish.jersey.servlet.WebConfig webConfig)  
      void setLogservice​(org.osgi.service.log.LogService logService)  
      void setUserManagementService​(no.priv.bang.osgiservice.users.UserManagementService usermanagement)  
      • Methods inherited from class org.glassfish.jersey.servlet.ServletContainer

        destroy, doFilter, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, init, init, reload, reload, service, service, service
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
    • Field Detail

      • logservice

        private org.osgi.service.log.LogService logservice
      • usermanagement

        private no.priv.bang.osgiservice.users.UserManagementService usermanagement
    • Constructor Detail

      • UserAdminWebApiServlet

        public UserAdminWebApiServlet()
    • Method Detail

      • setLogservice

        public void setLogservice​(org.osgi.service.log.LogService logService)
      • setUserManagementService

        public void setUserManagementService​(no.priv.bang.osgiservice.users.UserManagementService usermanagement)
      • activate

        public void activate()
      • init

        protected void init​(org.glassfish.jersey.servlet.WebConfig webConfig)
                     throws javax.servlet.ServletException
        Overrides:
        init in class org.glassfish.jersey.servlet.ServletContainer
        Throws:
        javax.servlet.ServletException