Class AgentsHandler
java.lang.Object
i5.las2peer.connectors.webConnector.handler.AgentsHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
handleChangeGroup
(String sessionId, String agentId, String members) javax.ws.rs.core.Response
handleChangePassphrase
(String agentId, String passphrase, String passphraseNew, String passphraseNew2) javax.ws.rs.core.Response
handleCreateAgent
(String username, String email, String ethereumMnemonic, String password) javax.ws.rs.core.Response
handleCreateGroup
(String sessionId, String members, String groupName) javax.ws.rs.core.Response
handleExportAgent
(String agentId, String username, String email) javax.ws.rs.core.Response
handleGetAgent
(String agentId, String username, String email) javax.ws.rs.core.Response
handleLoadGroup
(String sessionId, String agentId) javax.ws.rs.core.Response
handleUploadAgent
(InputStream agentFile, String password, String sessionId)
-
Field Details
-
RESOURCE_PATH
- See Also:
-
-
Constructor Details
-
AgentsHandler
-
-
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
-