|
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 |
|
◆ doGet()
void org.turro.elephant.snippet.SnippetServlet.doGet |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Definition at line 58 of file SnippetServlet.java.
void processRequest(HttpServletRequest request, HttpServletResponse response)
◆ doPost()
void org.turro.elephant.snippet.SnippetServlet.doPost |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
◆ getServletInfo()
String org.turro.elephant.snippet.SnippetServlet.getServletInfo |
( |
| ) |
|
◆ processRequest()
void org.turro.elephant.snippet.SnippetServlet.processRequest |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Definition at line 46 of file SnippetServlet.java.
47 KeyValueMap map =
new KeyValueMap();
48 if(hasJsonBody(request)) {
49 map.put(Snippets.JSONPAR, readBody(request));
51 for(String key : request.getParameterMap().keySet()) {
52 map.put(key, URLDecoder.decode(request.getParameter(key), StandardCharsets.UTF_8));
54 processJson(
new ElephantApplication(request, response), request.getPathInfo(), map);
The documentation for this class was generated from the following file: