Class AgentsHandler

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

@Path("/las2peer/agents") public class AgentsHandler extends Object
  • Field Details

  • Constructor Details

    • AgentsHandler

      public AgentsHandler(WebConnector connector)
  • Method Details

    • handleCreateAgent

      @POST @Path("/createAgent") @Produces("application/json") public javax.ws.rs.core.Response handleCreateAgent(String username, String email, String ethereumMnemonic, String password) throws Exception
      Throws:
      Exception
    • handleGetAgent

      @POST @Path("/getAgent") @Produces("application/json") public javax.ws.rs.core.Response handleGetAgent(String agentId, String username, String email) throws Exception
      Throws:
      Exception
    • handleExportAgent

      @POST @Path("/exportAgent") public javax.ws.rs.core.Response handleExportAgent(String agentId, String username, String email) throws Exception
      Throws:
      Exception
    • handleUploadAgent

      @POST @Path("/uploadAgent") public javax.ws.rs.core.Response handleUploadAgent(InputStream agentFile, String password, @CookieParam("sessionid") String sessionId) throws Exception
      Throws:
      Exception
    • handleChangePassphrase

      @POST @Path("/changePassphrase") public javax.ws.rs.core.Response handleChangePassphrase(String agentId, String passphrase, String passphraseNew, String passphraseNew2) throws Exception
      Throws:
      Exception
    • handleCreateGroup

      @POST @Path("/createGroup") public javax.ws.rs.core.Response handleCreateGroup(@CookieParam("sessionid") String sessionId, String members, String groupName) throws Exception
      Throws:
      Exception
    • handleLoadGroup

      @POST @Path("/loadGroup") public javax.ws.rs.core.Response handleLoadGroup(@CookieParam("sessionid") String sessionId, String agentId) throws i5.las2peer.api.security.AgentException
      Throws:
      i5.las2peer.api.security.AgentException
    • handleChangeGroup

      @POST @Path("/changeGroup") public javax.ws.rs.core.Response handleChangeGroup(@CookieParam("sessionid") String sessionId, String agentId, String members) throws i5.las2peer.api.security.AgentException, i5.las2peer.tools.CryptoException, i5.las2peer.serialization.SerializationException, net.minidev.json.parser.ParseException
      Throws:
      i5.las2peer.api.security.AgentException
      i5.las2peer.tools.CryptoException
      i5.las2peer.serialization.SerializationException
      net.minidev.json.parser.ParseException