@Beta
public abstract class AbstractCallbackServlet
extends javax.servlet.http.HttpServlet
Beta 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 and Description |
|---|
AbstractCallbackServlet()
Constructor with will ask the concrete subclass for all required information on the
environment.
|
| Modifier and Type | Method and Description |
|---|---|
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 com.google.api.client.http.HttpTransport |
getHttpTransport()
Return the
HttpTransport instance for this servlet. |
protected com.google.api.client.json.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 com.google.api.client.http.HttpTransport |
newHttpTransportInstance()
Create a new
HttpTransport instance. |
protected abstract com.google.api.client.json.JsonFactory |
newJsonFactoryInstance()
Create a new
JsonFactory instance. |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic AbstractCallbackServlet()
protected final com.google.api.client.json.JsonFactory getJsonFactory()
JsonFactory instance for this servlet.protected final com.google.api.client.http.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 com.google.api.client.http.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 com.google.api.client.json.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 environmentprotected final void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionCopyright © 2011-2013 Google. All Rights Reserved.