Class ServicesHandler
java.lang.Object
i5.las2peer.connectors.webConnector.handler.ServicesHandler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minidev.json.JSONObject
Deprecated.getTags()
javax.ws.rs.core.Response
handleSearchService
(String hostHeader, String searchName) Deprecated.javax.ws.rs.core.Response
handleServicePackageUpload
(String sessionId, InputStream jarfile, String supplement) javax.ws.rs.core.Response
handleStartService
(String serviceName, String version) javax.ws.rs.core.Response
handleStopService
(String serviceName, String version) showKeysForMnemonic
(String requestBody)
-
Field Details
-
RESOURCE_PATH
- See Also:
-
-
Constructor Details
-
ServicesHandler
-
-
Method Details
-
handleSearchService
@GET @Path("/search") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response handleSearchService(@HeaderParam("Host") String hostHeader, @QueryParam("searchname") String searchName) Deprecated. -
handleServicePackageUpload
@POST @Path("/upload") @Produces("application/json") public javax.ws.rs.core.Response handleServicePackageUpload(@CookieParam("sessionid") String sessionId, InputStream jarfile, @DefaultValue("") String supplement) throws Exception - Throws:
Exception
-
handleStartService
@POST @Path("/start") public javax.ws.rs.core.Response handleStartService(@QueryParam("serviceName") String serviceName, @QueryParam("version") String version) throws i5.las2peer.tools.CryptoException, i5.las2peer.api.security.AgentException - Throws:
i5.las2peer.tools.CryptoException
i5.las2peer.api.security.AgentException
-
handleStopService
@POST @Path("/stop") public javax.ws.rs.core.Response handleStopService(@QueryParam("serviceName") String serviceName, @QueryParam("version") String version) throws i5.las2peer.p2p.NodeException, i5.las2peer.p2p.AgentNotRegisteredException, i5.las2peer.api.execution.ServiceNotFoundException - Throws:
i5.las2peer.p2p.NodeException
i5.las2peer.p2p.AgentNotRegisteredException
i5.las2peer.api.execution.ServiceNotFoundException
-
getRawNodeIdAsJson
@GET @Path("/node-id") @Produces("application/json") public net.minidev.json.JSONObject getRawNodeIdAsJson() -
getRawNodeId
-
getStructuredServiceData
-
getRegisteredServices
-
getServiceAuthors
Deprecated. -
getServiceReleases
-
getServiceDeployments
-
getTags
-
generateMnemonic
-
showKeysForMnemonic
-