@Beta public abstract class AbstractAppEngineFlowServlet extends AbstractFlowUserServlet
Beta
AbstractFlowUserServlet
with
reasonable defaults for App Engine. This servlet requires that the App Engine user must be logged
in to work correctly.
Warning: starting with version 1.7, usage of this for OAuth 2.0 is deprecated. Instead use
AbstractAppEngineAuthorizationCodeServlet
.
Constructor and Description |
---|
AbstractAppEngineFlowServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
getUserId()
Return the user ID of the user that is logged in.
|
protected HttpTransport |
newHttpTransportInstance()
Create a new
HttpTransport instance. |
getCredential, getHttpTransport, getJsonFactory, getPersistenceManagerFactory, newFlow, newJsonFactoryInstance, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
protected String getUserId()
getUserId
in class AbstractFlowUserServlet
IllegalStateException
- Thrown when no user is logged in.protected HttpTransport newHttpTransportInstance()
AbstractFlowUserServlet
HttpTransport
instance. Implementations can create any type of applicable
transport and should be as simple as:
new NetHttpTransport();
newHttpTransportInstance
in class AbstractFlowUserServlet
HttpTransport
instance for your particular environmentCopyright © 2011–2022 Google. All rights reserved.