public class LoginGet extends java.lang.Object implements ControllerMethod
[server root]/login?client_id=[P4 Login]&request_uri=[uri]
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOGIN_PATH |
| Constructor and Description |
|---|
LoginGet(P4OAuthConfig config,
java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(javax.servlet.http.HttpServletRequest baseRequest,
javax.servlet.http.HttpServletResponse response)
Executes the controller call, writing out (and closing) the response.
|
boolean |
matches(javax.servlet.http.HttpServletRequest baseRequest)
If this returns true, assume that this method should probably be called
back.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrSendErrorpublic static final java.lang.String LOGIN_PATH
public LoginGet(P4OAuthConfig config, java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper)
public boolean matches(javax.servlet.http.HttpServletRequest baseRequest)
ControllerMethodmatches in interface ControllerMethodbaseRequest - The HttpServletRequest to checkpublic void handle(javax.servlet.http.HttpServletRequest baseRequest,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
ControllerMethodhandle in interface ControllerMethodbaseRequest - The HttpServletRequest that should indicate most of our input dataresponse - The response object to write out tojava.io.IOExceptionjavax.servlet.ServletException