|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.api.client.extensions.servlet.auth.AbstractFlowUserServlet
com.google.api.client.extensions.appengine.auth.AbstractAppEngineFlowServlet
public abstract class AbstractAppEngineFlowServlet
This class fills in some of the unknowns of the generic AbstractFlowUserServlet with
reasonable defaults for App Engine. This servlet requires that the App Engine user must be logged
in to work correctly.
| Constructor Summary | |
|---|---|
AbstractAppEngineFlowServlet()
|
|
| Method Summary | |
|---|---|
protected String |
getUserId()
Return the user ID of the user that is logged in. |
protected HttpTransport |
newHttpTransportInstance()
Create a new HttpTransport instance. |
protected JsonFactory |
newJsonFactoryInstance()
Create a new JsonFactory instance. |
| Methods inherited from class com.google.api.client.extensions.servlet.auth.AbstractFlowUserServlet |
|---|
getCredential, getHttpTransport, getJsonFactory, getPersistenceManagerFactory, newFlow, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAppEngineFlowServlet()
| Method Detail |
|---|
protected String getUserId()
getUserId in class AbstractFlowUserServletIllegalStateException - Thrown when no user is logged in.protected HttpTransport newHttpTransportInstance()
AbstractFlowUserServletHttpTransport instance. Implementations can create any type of applicable
transport and should be as simple as:
new NetHttpTransport();
newHttpTransportInstance in class AbstractFlowUserServletHttpTransport instance for your particular environmentprotected JsonFactory newJsonFactoryInstance()
AbstractFlowUserServletJsonFactory instance. Implementations can create any type of applicable
json factory and should be as simple as:
new JacksonFactory();
newJsonFactoryInstance in class AbstractFlowUserServletJsonFactory instance for your particular environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||