Class BootController

java.lang.Object
org.summerboot.jexpress.nio.server.ws.rs.PingController
org.summerboot.jexpress.nio.server.ws.rs.BootController

@Controller public abstract class BootController extends PingController
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

  • Constructor Details

    • BootController

      public BootController()
  • Method Details

    • version

      @GET @Path("/version") @Produces("text/html") @RolesAllowed("AppAdmin") public void version(ServiceContext context)
    • getVersion

      protected String getVersion()
    • inspect

      @GET @Path("/inspection") @Produces("text/html") @RolesAllowed("AppAdmin") public void inspect(ServiceContext context)
    • changeStatus

      @PUT @Path("/status") @RolesAllowed("AppAdmin") public void changeStatus(@QueryParam("pause") boolean pause, ServiceContext context) throws IOException
      Throws:
      IOException
    • login

      @POST @Consumes("application/x-www-form-urlencoded") @Path("/j_security_check") public Caller login(@Nonnull @FormParam("j_username") String uid, @FormParam("j_password") String pwd, ServiceContext context) throws IOException, NamingException
      Throws:
      IOException
      NamingException
    • logout

      @DELETE @Path("/logout") public void logout(ServiceRequest request, ServiceContext context)
    • loadTestBenchmarkPost1

      @POST @Path("/loadtest") @RolesAllowed("AppAdmin") public void loadTestBenchmarkPost1(ServiceRequest request, ServiceContext context, @QueryParam("delayMilsec") long wait)
    • loadTestBenchmarkPost2

      @POST @Path("/loadtest/{delayMilsec}") public void loadTestBenchmarkPost2(ServiceRequest request, ServiceContext context, @PathParam("delayMilsec") long wait)
    • loadTestBenchmarkGet1

      @GET @Path("/loadtest") @RolesAllowed("AppAdmin") public void loadTestBenchmarkGet1(ServiceRequest request, ServiceContext context, @QueryParam("delayMilsec") long wait)
    • loadTestBenchmarkGet2

      @GET @Path("/loadtest/{delayMilsec}") public void loadTestBenchmarkGet2(ServiceRequest request, ServiceContext context, @PathParam("delayMilsec") long wait)