Class BootController
java.lang.Object
org.summerboot.jexpress.nio.server.ws.rs.BootController
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Authenticatorprotected AuthTokenCacheprotected HealthInspector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeStatus(boolean pause, ServiceContext context) protected Stringvoidinspect(ServiceContext context) voidloadTestBenchmarkGet1(ServiceRequest request, ServiceContext context, long wait) voidloadTestBenchmarkGet2(ServiceRequest request, ServiceContext context, long wait) voidloadTestBenchmarkPost1(ServiceRequest request, ServiceContext context, long wait) voidloadTestBenchmarkPost2(ServiceRequest request, ServiceContext context, long wait) voidlogin(String uid, String pwd, ServiceContext context) voidlogout(ServiceRequest request, ServiceContext context) voidping()method with @Ping annotation will be handled by BootHttpPingHandlervoidversion(ServiceContext context)
-
Field Details
-
authTokenCache
-
healthInspector
-
auth
-
-
Constructor Details
-
BootController
public BootController()
-
-
Method Details
-
ping
method with @Ping annotation will be handled by BootHttpPingHandler -
version
@GET @Path("/version") @Produces("text/html") @RolesAllowed("AppAdmin") public void version(ServiceContext context) -
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 void login(@Nonnull @FormParam("j_username") String uid, @FormParam("j_password") String pwd, ServiceContext context) throws IOException, NamingException - Throws:
IOExceptionNamingException
-
logout
@DELETE @Path("/logout") @PermitAll 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)
-