|
||||||||||
| 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.AbstractCallbackServlet
public abstract class AbstractCallbackServlet
Callback that will retrieve and complete a ThreeLeggedFlow when redirected to by a token
server or service provider. Developer should subclass to provide the necessary information
tailored to their specific use case.
Warning: starting with version 1.7, usage of this for OAuth 2.0 is deprecated. Instead use AbstractAuthorizationCodeCallbackServlet.
| Constructor Summary | |
|---|---|
AbstractCallbackServlet()
Constructor with will ask the concrete subclass for all required information on the environment. |
|
| Method Summary | |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected abstract String |
getCompletionCodeQueryParam()
|
protected abstract Class<? extends ThreeLeggedFlow> |
getConcreteFlowType()
|
protected abstract String |
getDeniedRedirectUrl()
|
protected HttpTransport |
getHttpTransport()
Return the HttpTransport instance for this servlet. |
protected JsonFactory |
getJsonFactory()
Return the JsonFactory instance for this servlet. |
protected abstract javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory()
Override with your chosen method to get a PersistenceManagerFactory. |
protected abstract String |
getSuccessRedirectUrl()
|
protected abstract String |
getUserId()
|
protected abstract HttpTransport |
newHttpTransportInstance()
Create a new HttpTransport instance. |
protected abstract JsonFactory |
newJsonFactoryInstance()
Create a new JsonFactory instance. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, 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 AbstractCallbackServlet()
| Method Detail |
|---|
protected final JsonFactory getJsonFactory()
JsonFactory instance for this servlet.
protected final HttpTransport getHttpTransport()
HttpTransport instance for this servlet.
protected abstract javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
protected abstract Class<? extends ThreeLeggedFlow> getConcreteFlowType()
protected abstract String getSuccessRedirectUrl()
protected abstract String getDeniedRedirectUrl()
protected abstract String getCompletionCodeQueryParam()
protected abstract String getUserId()
protected abstract HttpTransport newHttpTransportInstance()
HttpTransport instance. Implementations can create any type of applicable
transport and should be as simple as:
new NetHttpTransport();
HttpTransport instance for your particular environmentprotected abstract JsonFactory newJsonFactoryInstance()
JsonFactory instance. Implementations can create any type of applicable
json factory and should be as simple as:
new JacksonFactory();
JsonFactory instance for your particular environment
protected final void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
doGet in class javax.servlet.http.HttpServletIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||