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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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(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) voidpause(boolean pause, ServiceContext context) protected voidpostLogin(ServiceContext context) protected booleanpreLogin(String userId, String password, 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_429
- See Also:
-
DESC_500
- See Also:
-
DESC_501
- See Also:
-
DESC_503
- See Also:
-
DESC_504
- See Also:
-
DESC_507
- See Also:
-
authTokenCache
-
auth
-
version
-
-
Constructor Details
-
BootController
public BootController()
-
-
Method Details
-
version
@GET @Path("/version") @Produces("text/html") @RolesAllowed("AppAdmin") @Deamon public void version(ServiceContext context) -
getVersion
-
inspect
@GET @Path("/inspection") @Produces("text/html") @RolesAllowed("AppAdmin") @Deamon public void inspect(ServiceContext context) -
pause
@PUT @Path("/status") @RolesAllowed("AppAdmin") @Deamon public void pause(@QueryParam("pause") boolean pause, ServiceContext context) throws IOException - Throws:
IOException
-
longin_jSecurityCheck
@POST @Consumes("application/x-www-form-urlencoded") @Path("/j_security_check") @Deamon @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") @Deamon @Log(requestBody=false, responseHeader=false) public Caller longin_JSON(@Nonnull LoginVo loginVo, ServiceContext context) throws IOException, NamingException - Throws:
IOExceptionNamingException
-
login
public Caller login(Authenticator auth, String userId, String password, ServiceContext context) throws NamingException - Throws:
NamingException
-
preLogin
-
postLogin
-
logout
-
loadTestBenchmarkPost1
@POST @Path("/loadtest") @RolesAllowed("AppAdmin") @Deamon public void loadTestBenchmarkPost1(ServiceRequest request, ServiceContext context, @QueryParam("delayMilsec") long wait) -
loadTestBenchmarkPost2
@POST @Path("/loadtest/{delayMilsec}") @Deamon public void loadTestBenchmarkPost2(ServiceRequest request, ServiceContext context, @PathParam("delayMilsec") long wait) -
loadTestBenchmarkGet1
@GET @Path("/loadtest") @RolesAllowed("AppAdmin") @Deamon public void loadTestBenchmarkGet1(ServiceRequest request, ServiceContext context, @QueryParam("delayMilsec") long wait) -
loadTestBenchmarkGet2
@GET @Path("/loadtest/{delayMilsec}") @Deamon public void loadTestBenchmarkGet2(ServiceRequest request, ServiceContext context, @PathParam("delayMilsec") long wait)
-