Class BootController
java.lang.Object
org.summerboot.jexpress.nio.server.ws.rs.PingController
org.summerboot.jexpress.nio.server.ws.rs.BootController
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Authenticatorprotected AuthTokenCacheprotected HealthInspectorstatic final Stringstatic final String -
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) login(String uid, String pwd, ServiceContext context) voidlogout(ServiceRequest request, ServiceContext context) voidversion(ServiceContext context) Methods inherited from class org.summerboot.jexpress.nio.server.ws.rs.PingController
ping
-
Field Details
-
TAG_APP_ADMIN
- See Also:
-
TAG_USER_AUTH
- See Also:
-
authTokenCache
-
healthInspector
-
auth
-
-
Constructor Details
-
BootController
public BootController()
-
-
Method Details
-
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 Caller login(@Nonnull @FormParam("j_username") String uid, @FormParam("j_password") String pwd, ServiceContext context) throws IOException, NamingException - Throws:
IOExceptionNamingException
-
logout
-
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)
-