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 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Authenticatorprotected AuthTokenCachestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected 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) static Callerlogin(Authenticator auth, String userId, String password, ServiceContext context) voidlogout(ServiceRequest request, ServiceContext context) longin_jSecurityCheck(String userId, String password, ServiceContext context) longin_JSON(LoginVo loginVo, 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:
-
DESC_400
- See Also:
-
DESC_401
- See Also:
-
DESC_403
- See Also:
-
DESC_404
- See Also:
-
DESC_500
- See Also:
-
DESC_501
- See Also:
-
DESC_503
- 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
-
longin_jSecurityCheck
@POST @Consumes("application/x-www-form-urlencoded") @Path("/j_security_check") @Log(requestBody=false, responseHeader=false) public Caller longin_jSecurityCheck(@Nonnull @FormParam("j_username") String userId, @FormParam("j_password") String password, ServiceContext context) throws IOException, NamingException - Throws:
IOExceptionNamingException
-
longin_JSON
@POST @Consumes("application/json") @Path("/login") @Log(requestBody=false, responseHeader=false) public Caller longin_JSON(@Nonnull LoginVo loginVo, ServiceContext context) throws IOException, NamingException - Throws:
IOExceptionNamingException
-
login
public static Caller login(Authenticator auth, String userId, String password, ServiceContext context) throws NamingException - Throws:
NamingException
-
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)
-