Class ServicesHandler

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

@Path("/las2peer/services") public class ServicesHandler extends Object
  • Field Details

  • Constructor Details

    • ServicesHandler

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

      @GET @Path("/node-id") @Produces("text/plain") public String getRawNodeId()
    • getStructuredServiceData

      @GET @Path("/services") @Produces("application/json") public String getStructuredServiceData()
    • getRegisteredServices

      @GET @Path("/names") @Produces("application/json") public String getRegisteredServices()
    • getServiceAuthors

      @GET @Path("/authors") @Produces("application/json") @Deprecated public String getServiceAuthors()
      Deprecated.
    • getServiceReleases

      @GET @Path("/releases") @Produces("application/json") public String getServiceReleases()
    • getServiceDeployments

      @GET @Path("/deployments") @Produces("application/json") public String getServiceDeployments()
    • getTags

      @GET @Path("/registry/tags") @Produces("application/json") public String getTags()
    • generateMnemonic

      @GET @Path("/registry/mnemonic") @Produces("text/plain") public String generateMnemonic()
    • showKeysForMnemonic

      @POST @Path("/registry/mnemonic") @Produces("application/json") public String showKeysForMnemonic(String requestBody)