18 package org.turro.elephant.servlet.context;
20 import java.io.IOException;
21 import javax.servlet.ServletException;
22 import javax.servlet.annotation.WebServlet;
23 import javax.servlet.http.HttpServlet;
24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse;
26 import org.turro.action.Closeables;
27 import org.turro.action.IAgreements;
28 import org.turro.action.Initializers;
29 import org.turro.action.Interceptors;
30 import org.turro.elephant.context.ElephantApplication;
31 import org.turro.elephant.context.ElephantContext;
32 import org.turro.elephant.context.HeadlessApplication;
33 import org.turro.elephant.context.IConstructor;
34 import org.turro.elephant.direct.DirectContents;
35 import org.turro.sso.SSO;
42 @WebServlet(name =
"Context", urlPatterns = {
"",
"/"})
46 protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
48 super.service(req, resp);
51 protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
82 protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
83 processRequest(request, response);
91 protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
92 processRequest(request, response);
99 return "Context servlet for Elephant";
static void closeElephant()
static void initialize(IConstructor constructor)
static boolean executeWeb(IConstructor constructor)
static IConstructor getConstructor(HttpServletRequest request, HttpServletResponse response)
static boolean getUseSSO()
static HeadlessApplication getInstance()
static boolean isDirectContent(HttpServletRequest request)
static synchronized boolean executeDirectContents(ServletContext context, HttpServletRequest request, HttpServletResponse response)
void service(HttpServletRequest req, HttpServletResponse resp)
void doGet(HttpServletRequest request, HttpServletResponse response)
void processRequest(HttpServletRequest request, HttpServletResponse response)
void doPost(HttpServletRequest request, HttpServletResponse response)
static IElephantSSO getSSO()
static boolean checkAgreements(HttpServletRequest request, HttpServletResponse response)
HttpServletResponse getResponse()
HttpServletRequest getRequest()
void navigateAuthenticatedTo(HttpServletRequest request, HttpServletResponse response)