Class EthereumHandler

java.lang.Object
i5.las2peer.connectors.webConnector.handler.EthereumHandler

@Path("/las2peer/eth") public class EthereumHandler extends Object
  • Field Details

  • Constructor Details

    • EthereumHandler

      public EthereumHandler(WebConnector connector)
  • 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

      @POST @Path("/requestFaucet") @Produces("application/json") public javax.ws.rs.core.Response handleRequestFaucet(@Context javax.ws.rs.core.UriInfo uriInfo, @CookieParam("sessionid") String sessionId, String groupID)
    • 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