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

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 51 of file PrintServlet.java.

Member Function Documentation

◆ doGet()

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

Definition at line 134 of file PrintServlet.java.

134  {
135  processRequest(request, response);
136  }
void processRequest(HttpServletRequest request, HttpServletResponse response)

◆ doPost()

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

Definition at line 139 of file PrintServlet.java.

139  {
140  processRequest(request, response);
141  }

◆ getServletInfo()

String org.turro.elephant.print.PrintServlet.getServletInfo ( )

Definition at line 144 of file PrintServlet.java.

144  {
145  return "Print servlet";
146  }

◆ processRequest()

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

Definition at line 125 of file PrintServlet.java.

125  {
126  KeyValueMap map = new KeyValueMap();
127  for(String key : request.getParameterMap().keySet()) {
128  map.put(key, URLDecoder.decode(request.getParameter(key), StandardCharsets.UTF_8));
129  }
130  processPrint(new ElephantApplication(request, response), request.getPathInfo(), map);
131  }

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