Class EthereumHandler
java.lang.Object
i5.las2peer.connectors.webConnector.handler.EthereumHandler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
clamp
(float val, float min, float max) getNodeIDsOfAdminNodes
(String agentEmail) javax.ws.rs.core.Response
handleAddTransaction
(String sessionId, String agentId, Float weiAmount, String message) javax.ws.rs.core.Response
handleDashboardList
(String sessionId) javax.ws.rs.core.Response
handleGetAdminServices
(String sessionId) javax.ws.rs.core.Response
javax.ws.rs.core.Response
handleGetGenericTxLogSent
(String sessionId) javax.ws.rs.core.Response
handleGetKnownNodeInfo
(String sessionId) javax.ws.rs.core.Response
handleGetWallet
(String sessionId) javax.ws.rs.core.Response
handleListAgents
(String sessionId) javax.ws.rs.core.Response
handleListProfiles
(String sessionId) javax.ws.rs.core.Response
handleRateAgent
(String sessionId, String agentId, Integer rating) javax.ws.rs.core.Response
handleRegisterProfile
(String sessionId) javax.ws.rs.core.Response
handleRequestFaucet
(javax.ws.rs.core.UriInfo uriInfo, String sessionId, String groupID)
-
Field Details
-
RESOURCE_PATH
- See Also:
-
-
Constructor Details
-
EthereumHandler
-
-
Method Details
-
clamp
public float clamp(float val, float min, float max) -
getNodeIDsOfAdminNodes
public List<String> getNodeIDsOfAdminNodes(String agentEmail) throws i5.las2peer.registry.exceptions.EthereumException - Throws:
i5.las2peer.registry.exceptions.EthereumException
-
handleGetCoinbaseBalance
@POST @Path("/getCoinbaseBalance") @Produces("application/json") public javax.ws.rs.core.Response handleGetCoinbaseBalance() -
handleRequestFaucet
-
handleGetWallet
@POST @Path("/getEthWallet") @Produces("application/json") public javax.ws.rs.core.Response handleGetWallet(@CookieParam("sessionid") String sessionId) -
handleGetAdminServices
@GET @Path("/getAdminServices") @Produces("application/json") public javax.ws.rs.core.Response handleGetAdminServices(@CookieParam("sessionid") String sessionId) throws Exception - Throws:
Exception
-
handleGetKnownNodeInfo
@GET @Path("/getAdminNodes") @Produces("application/json") public javax.ws.rs.core.Response handleGetKnownNodeInfo(@CookieParam("sessionid") String sessionId) throws Exception - Throws:
Exception
-
handleGetGenericTxLogSent
@POST @Path("/getGenericTxLog") @Produces("application/json") public javax.ws.rs.core.Response handleGetGenericTxLogSent(@CookieParam("sessionid") String sessionId) -
handleRegisterProfile
@POST @Path("/registerProfile") @Produces("application/json") public javax.ws.rs.core.Response handleRegisterProfile(@CookieParam("sessionid") String sessionId) throws i5.las2peer.serialization.MalformedXMLException, IOException - Throws:
i5.las2peer.serialization.MalformedXMLException
IOException
-
handleDashboardList
@POST @Path("/dashboardList") public javax.ws.rs.core.Response handleDashboardList(@CookieParam("sessionid") String sessionId) -
handleListAgents
@POST @Path("/listAgents") public javax.ws.rs.core.Response handleListAgents(@CookieParam("sessionid") String sessionId) throws i5.las2peer.serialization.MalformedXMLException, IOException - Throws:
i5.las2peer.serialization.MalformedXMLException
IOException
-
handleListProfiles
@POST @Path("/listProfiles") public javax.ws.rs.core.Response handleListProfiles(@CookieParam("sessionid") String sessionId) -
handleRateAgent
@POST @Path("/rateAgent") @Produces("application/json") public javax.ws.rs.core.Response handleRateAgent(@CookieParam("sessionid") String sessionId, String agentId, Integer rating) throws Exception - Throws:
Exception
-
handleAddTransaction
@POST @Path("/addTransaction") public javax.ws.rs.core.Response handleAddTransaction(@CookieParam("sessionid") String sessionId, String agentId, Float weiAmount, String message) throws Exception - Throws:
Exception
-