public abstract class AbstractRegistrationServlet extends MyProxyDelegationServlet implements Presentable
Created by Jeff Gaynor
on 10/3/14 at 10:46 AM
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRegistrationServlet.ClientRegistrationRetryException |
protected static class |
AbstractRegistrationServlet.ClientState |
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_ACTION_KEY |
static String |
CLIENT_ACTION_REQUEST_VALUE |
static String |
CLIENT_CALLBACK_URI |
static String |
CLIENT_EMAIL |
static String |
CLIENT_ERROR_URL |
static String |
CLIENT_HOME_URL |
static String |
CLIENT_IS_PUBLIC |
static String |
CLIENT_NAME |
static String |
CLIENT_PROXY_LIMITED |
static String |
CLIENT_PUBLIC_KEY |
protected String |
emailPattern |
static String |
ERROR_PAGE
The name of a JSP page to display in case of errors.
|
protected static int |
ERROR_STATE |
static String |
INIT_PAGE
The page to display to the client for the initial request.
|
protected static int |
INITIAL_STATE |
static String |
OK_PAGE
If the registration works, this is the page to display to the user afterwards.
|
protected static int |
REQUEST_STATE |
caThread, ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, kpt, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
AbstractRegistrationServlet() |
Modifier and Type | Method and Description |
---|---|
protected BaseClient |
addNewClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doIt(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
fireNewClientEvent(BaseClient client) |
protected String |
getErrorPage() |
protected String |
getInitPage() |
protected String |
getOKPage() |
protected String |
getParameter(javax.servlet.http.HttpServletRequest req,
String key) |
protected String |
getRequiredParam(javax.servlet.http.HttpServletRequest req,
String key,
BaseClient client) |
int |
getState(javax.servlet.http.HttpServletRequest request) |
protected String |
getValueTag(String key)
For a key (e.g.
|
void |
handleError(PresentableState state,
Throwable t)
Handle and error.
|
void |
prepare(PresentableState state)
This is invoked before the main processing for this servlet.
|
void |
present(PresentableState state)
This is invoked after the main processing for the servlet.
|
protected void |
save(BaseClient client) |
protected void |
setRetryParameters(javax.servlet.http.HttpServletRequest request,
RetryException r)
Sets the parameters from the request so they can be passed back.
|
protected BaseClient |
setupNewClient(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
ServiceTransaction |
verifyAndGet(IssuerResponse iResponse)
This is called after the response is received so that the system can get the approproate
transaction.
|
addNotificationListener, checkClientApproval, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, postprocess, preprocess, realStoreUpdates, removeNotificationListener, say, shutdownCleanup, storeUpdates
loadEnvironment, processStoreCheck
CONST, debug, doGet, doPing, doPost, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String CLIENT_NAME
public static final String CLIENT_PUBLIC_KEY
public static final String CLIENT_HOME_URL
public static final String CLIENT_ERROR_URL
public static final String CLIENT_EMAIL
public static final String CLIENT_CALLBACK_URI
public static final String CLIENT_PROXY_LIMITED
public static final String CLIENT_IS_PUBLIC
public static final String CLIENT_ACTION_KEY
public static final String CLIENT_ACTION_REQUEST_VALUE
protected static final int INITIAL_STATE
protected static final int ERROR_STATE
protected static final int REQUEST_STATE
public static String INIT_PAGE
public static String ERROR_PAGE
public static String OK_PAGE
protected String emailPattern
public ServiceTransaction verifyAndGet(IssuerResponse iResponse) throws IOException
MyProxyDelegationServlet
verifyAndGet
in class MyProxyDelegationServlet
IOException
public int getState(javax.servlet.http.HttpServletRequest request)
protected void fireNewClientEvent(BaseClient client)
public void prepare(PresentableState state) throws Throwable
Presentable
prepare
in interface Presentable
Throwable
protected String getInitPage()
protected String getErrorPage()
protected String getOKPage()
public void present(PresentableState state) throws Throwable
Presentable
present
in interface Presentable
Throwable
public void handleError(PresentableState state, Throwable t) throws IOException, javax.servlet.ServletException
Presentable
handleError
in interface Presentable
IOException
javax.servlet.ServletException
protected String getValueTag(String key)
key
- protected void doIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
doIt
in class AbstractServlet
Throwable
protected void save(BaseClient client)
protected void setRetryParameters(javax.servlet.http.HttpServletRequest request, RetryException r)
request
- r
- protected String getRequiredParam(javax.servlet.http.HttpServletRequest req, String key, BaseClient client)
protected BaseClient setupNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
Throwable
protected BaseClient addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
Throwable
Copyright © 2019. All Rights Reserved.