Class WebUiPageTree.LogInLogOutPages
java.lang.Object
org.apache.drill.yarn.appMaster.http.WebUiPageTree.LogInLogOutPages
- Enclosing class:
- WebUiPageTree
Pages, adapted from Drill, that display the login and logout pages.
Login uses the security mechanism, again borrowed from Drill, to
validate the user against either the simple user/password
configured in DoY, or the user who launched DoY using the
Drill security mechanism.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.jersey.server.mvc.Viewable
getLoginPage
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.ws.rs.core.SecurityContext sc, javax.ws.rs.core.UriInfo uriInfo, String redirect) org.glassfish.jersey.server.mvc.Viewable
org.glassfish.jersey.server.mvc.Viewable
logout
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
Field Details
-
REDIRECT_QUERY_PARM
- See Also:
-
LOGIN_RESOURCE
- See Also:
-
-
Constructor Details
-
LogInLogOutPages
public LogInLogOutPages()
-
-
Method Details
-
getLoginPage
@GET @Path("/login") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getLoginPage(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @Context javax.ws.rs.core.SecurityContext sc, @Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("redirect") String redirect) throws Exception - Throws:
Exception
-
getLoginPageAfterValidationError
@POST @Path("/login") @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getLoginPageAfterValidationError() -
logout
@GET @Path("/logout") public org.glassfish.jersey.server.mvc.Viewable logout(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse resp) throws Exception - Throws:
Exception
-