Class DefaultHandler

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

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

  • Constructor Details

    • DefaultHandler

      public DefaultHandler(WebConnector connector)
  • Method Details

    • checkEth

      @GET @Path("/check-eth") @Produces("application/json") public javax.ws.rs.core.Response checkEth() throws javax.ws.rs.NotFoundException
      Throws:
      javax.ws.rs.NotFoundException
    • rootPath

      @GET public javax.ws.rs.core.Response rootPath() throws URISyntaxException
      Throws:
      URISyntaxException
    • getCoreVersion

      @GET @Path("/version") @Produces("text/plain") public String getCoreVersion()
    • getCACert

      @GET @Path("/cacert") public javax.ws.rs.core.Response getCACert() throws IOException
      Throws:
      IOException
    • getNodeStatus

      @GET @Path("/status") @Produces("application/json") public String getNodeStatus(@Context javax.ws.rs.core.UriInfo uriInfo)
    • handleGetOtherNodeInfo

      @GET @Path("/getOtherNodesInfo") @Produces("application/json") public String handleGetOtherNodeInfo()
    • getCurrentAgentId

      @GET @Produces("text/plain") @Path("/currentagent") public String getCurrentAgentId(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders)
    • getCurrentAgentJson

      @GET @Produces("application/json") @Path("/currentagent") public String getCurrentAgentJson(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders)
    • getCurrentAgentXml

      @GET @Produces("application/xml") @Path("/currentagent") public String getCurrentAgentXml(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders)