|
||||||||||
| 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.AbstractTwoLeggedFlowServlet
com.google.api.client.extensions.appengine.auth.AbstractAppEngineTwoLeggedFlowServlet
public abstract class AbstractAppEngineTwoLeggedFlowServlet
Specialization of the two-legged flow that uses some simple defaults for App Engine.
| Constructor Summary | |
|---|---|
AbstractAppEngineTwoLeggedFlowServlet()
|
|
| 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.AbstractTwoLeggedFlowServlet |
|---|
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 AbstractAppEngineTwoLeggedFlowServlet()
| Method Detail |
|---|
protected String getUserId()
getUserId in class AbstractTwoLeggedFlowServletIllegalStateException - Thrown when no user is logged in.protected HttpTransport newHttpTransportInstance()
AbstractTwoLeggedFlowServletHttpTransport instance. Implementations can create any type of applicable
transport and should be as simple as:
new NetHttpTransport();
newHttpTransportInstance in class AbstractTwoLeggedFlowServletHttpTransport instance for your particular environmentprotected JsonFactory newJsonFactoryInstance()
AbstractTwoLeggedFlowServletJsonFactory instance. Implementations can create any type of applicable
json factory and should be as simple as:
new JacksonFactory();
newJsonFactoryInstance in class AbstractTwoLeggedFlowServletJsonFactory instance for your particular environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||