BrightSide Workbench Full Report + Source Code
org.turro.alliance.service.P2PClient Class Reference
Inheritance diagram for org.turro.alliance.service.P2PClient:
Collaboration diagram for org.turro.alliance.service.P2PClient:

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 P2PClient.java.

Member Function Documentation

◆ doGet()

void org.turro.alliance.service.P2PClient.doGet ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 67 of file P2PClient.java.

67  {
68  processRequest(request, response);
69  }
void processRequest(HttpServletRequest request, HttpServletResponse response)
Definition: P2PClient.java:58

◆ doPost()

void org.turro.alliance.service.P2PClient.doPost ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 72 of file P2PClient.java.

72  {
73  processRequest(request, response);
74  }

◆ getServletInfo()

String org.turro.alliance.service.P2PClient.getServletInfo ( )

Definition at line 77 of file P2PClient.java.

77  {
78  return "P2P client servlet";
79  }

◆ processRequest()

void org.turro.alliance.service.P2PClient.processRequest ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Definition at line 58 of file P2PClient.java.

58  {
59  KeyValueMap map = new KeyValueMap();
60  for(String key : request.getParameterMap().keySet()) {
61  map.put(key, URLDecoder.decode(request.getParameter(key), StandardCharsets.UTF_8));
62  }
63  processP2P(new ElephantApplication(request, response), request.getPathInfo(), map);
64  }

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