BrightSide Workbench Full Report + Source Code
org.turro.elephant.servlet.context.ContextServlet Class Reference
Inheritance diagram for org.turro.elephant.servlet.context.ContextServlet:
Collaboration diagram for org.turro.elephant.servlet.context.ContextServlet:

Public Member Functions

void destroy ()
 
String getServletInfo ()
 

Protected Member Functions

void service (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
 
void processRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 
void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 
void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Version

Definition at line 43 of file ContextServlet.java.

Member Function Documentation

◆ destroy()

void org.turro.elephant.servlet.context.ContextServlet.destroy ( )

Definition at line 71 of file ContextServlet.java.

71  {
72  super.destroy();
73  Closeables.closeElephant();
74  }
Here is the call graph for this function:

◆ doGet()

void org.turro.elephant.servlet.context.ContextServlet.doGet ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Handles the HTTP GET method.

Parameters
requestservlet request
responseservlet response

Definition at line 82 of file ContextServlet.java.

82  {
83  processRequest(request, response);
84  }
void processRequest(HttpServletRequest request, HttpServletResponse response)

◆ doPost()

void org.turro.elephant.servlet.context.ContextServlet.doPost ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Handles the HTTP POST method.

Parameters
requestservlet request
responseservlet response

Definition at line 91 of file ContextServlet.java.

91  {
92  processRequest(request, response);
93  }

◆ getServletInfo()

String org.turro.elephant.servlet.context.ContextServlet.getServletInfo ( )

Returns a short description of the servlet.

Definition at line 98 of file ContextServlet.java.

98  {
99  return "Context servlet for Elephant";
100  }

◆ processRequest()

void org.turro.elephant.servlet.context.ContextServlet.processRequest ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 51 of file ContextServlet.java.

51  {
52  if(DirectContents.isDirectContent(request)) {
53  DirectContents.executeDirectContents(getServletContext(), request, response);
54  return; // moved
55  }
56  IConstructor constructor = ElephantContext.getConstructor(request, response);
57  HeadlessApplication.getInstance(constructor);
58  Initializers.initialize(constructor);
59  if(IAgreements.checkAgreements(request, response)) {
60  if(ElephantContext.getUseSSO() && SSO.hasSSO(request) && constructor.getUser() == null) {
61  SSO.getSSO().navigateAuthenticatedTo(constructor.getRequest(), constructor.getResponse());
62  } else {
63  if(!Interceptors.executeWeb(constructor)) {
64  constructor.startConstruction();
65  }
66  }
67  }
68  }
Here is the call graph for this function:

◆ service()

void org.turro.elephant.servlet.context.ContextServlet.service ( HttpServletRequest  req,
HttpServletResponse  resp 
) throws ServletException, IOException
protected

Definition at line 46 of file ContextServlet.java.

46  {
47  req.setAttribute("el_app", new ElephantApplication(req, resp));
48  super.service(req, resp);
49  }

The documentation for this class was generated from the following file: