Class ServicesHandler

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

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

  • Constructor Details

  • Method Details

    • handleSearchService

      @GET @Path("/search") @Produces("application/json") @Deprecated public javax.ws.rs.core.Response handleSearchService​(@HeaderParam("Host") java.lang.String hostHeader, @QueryParam("searchname") java.lang.String searchName)
      Deprecated.
    • handleServicePackageUpload

      @POST @Path("/upload") @Produces("application/json") public javax.ws.rs.core.Response handleServicePackageUpload​(@CookieParam("sessionid") java.lang.String sessionId, java.io.InputStream jarfile, @DefaultValue("") java.lang.String supplement) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • handleStartService

      @POST @Path("/start") public javax.ws.rs.core.Response handleStartService​(@QueryParam("serviceName") java.lang.String serviceName, @QueryParam("version") java.lang.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") java.lang.String serviceName, @QueryParam("version") java.lang.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 java.lang.String getRawNodeId()
    • getStructuredServiceData

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

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

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

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

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

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

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

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