@Beta @Deprecated 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()
Deprecated.
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)
Deprecated.
|
protected abstract String |
getCompletionCodeQueryParam()
Deprecated.
|
protected abstract Class<? extends ThreeLeggedFlow> |
getConcreteFlowType()
Deprecated.
|
protected abstract String |
getDeniedRedirectUrl()
Deprecated.
|
protected HttpTransport |
getHttpTransport()
Deprecated.
Return the
HttpTransport instance for this servlet. |
protected JsonFactory |
getJsonFactory()
Deprecated.
Return the
JsonFactory instance for this servlet. |
protected abstract javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory()
Deprecated.
Override with your chosen method to get a PersistenceManagerFactory.
|
protected abstract String |
getSuccessRedirectUrl()
Deprecated.
|
protected abstract String |
getUserId()
Deprecated.
|
protected abstract HttpTransport |
newHttpTransportInstance()
Deprecated.
Create a new
HttpTransport instance. |
protected abstract JsonFactory |
newJsonFactoryInstance()
Deprecated.
Create a new
JsonFactory instance. |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public AbstractCallbackServlet()
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 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.HttpServlet
IOException
javax.servlet.ServletException
Copyright © 2011–2019 Google. All rights reserved.