public abstract class AuthorizedServlet extends CRServlet
Created by Jeff Gaynor
Modifier and Type | Class and Description |
---|---|
static class |
AuthorizedServlet.ProtocolParameters |
Modifier and Type | Field and Description |
---|---|
static String |
REDIRECT_URL_KEY |
static String |
STATUS_KEY |
static String |
STATUS_OK |
caThread, ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, kpt, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
AuthorizedServlet() |
Modifier and Type | Method and Description |
---|---|
abstract String |
createCallback(ServiceTransaction transaction) |
protected void |
doIt(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected ServiceTransaction |
getAndCheckTransaction(AuthorizedServlet.ProtocolParameters p) |
protected abstract AuthorizedServlet.ProtocolParameters |
parseRequest(javax.servlet.http.HttpServletRequest request)
This will take the HTTP request and parse it into parameters.
|
protected void |
writeResponse(javax.servlet.http.HttpServletResponse response,
ServiceTransaction transaction)
Write the response to the output stream and returns the callback that was generated, if there is one.
|
createMPConnection, createMPConnection, doCertRequest, doRealCertRequest, getAccessToken, getX509Certificates
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, verifyAndGet
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 STATUS_KEY
public static final String STATUS_OK
public static final String REDIRECT_URL_KEY
public abstract String createCallback(ServiceTransaction transaction)
protected abstract AuthorizedServlet.ProtocolParameters parseRequest(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
request
- javax.servlet.ServletException
protected void doIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
doIt
in class AbstractServlet
Throwable
protected void writeResponse(javax.servlet.http.HttpServletResponse response, ServiceTransaction transaction) throws IOException
response
- transaction
- IOException
protected ServiceTransaction getAndCheckTransaction(AuthorizedServlet.ProtocolParameters p) throws Throwable
Throwable
Copyright © 2019. All Rights Reserved.