BrightSide Workbench Full Report + Source Code
org.turro.elephant.download.DownloadServlet Class Reference
Inheritance diagram for org.turro.elephant.download.DownloadServlet:
Collaboration diagram for org.turro.elephant.download.DownloadServlet:

Public Member Functions

String getServletInfo ()
 

Protected Member Functions

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

Definition at line 45 of file DownloadServlet.java.

Member Function Documentation

◆ doGet()

void org.turro.elephant.download.DownloadServlet.doGet ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 83 of file DownloadServlet.java.

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

◆ doPost()

void org.turro.elephant.download.DownloadServlet.doPost ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 88 of file DownloadServlet.java.

88  {
89  processRequest(request, response);
90  }

◆ getServletInfo()

String org.turro.elephant.download.DownloadServlet.getServletInfo ( )

Definition at line 93 of file DownloadServlet.java.

93  {
94  return "Download servlet";
95  }

◆ processRequest()

void org.turro.elephant.download.DownloadServlet.processRequest ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 74 of file DownloadServlet.java.

74  {
75  KeyValueMap map = new KeyValueMap();
76  for(String key : request.getParameterMap().keySet()) {
77  map.put(key, URLDecoder.decode(request.getParameter(key), StandardCharsets.UTF_8));
78  }
79  processDownload(new ElephantApplication(request, response), request.getPathInfo(), map);
80  }

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