Package com.appiancorp.suiteapi.servlet
Class AppianServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.appiancorp.suiteapi.servlet.AppianServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public abstract class AppianServlet
extends javax.servlet.http.HttpServlet
Abstract servlet class that provide inject functionality.
To have services injected into servlets, plugin servlets will be written to extend this
class and add @Inject annotation for the services to be injected.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
servlet init() method that locates the web application context and autowires services with @Inject annotations.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
AppianServlet
public AppianServlet()
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletExceptionservlet init() method that locates the web application context and autowires services with @Inject annotations. Note that the `init()` method on the AppianServlet class initializes the injectors.- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-