Class DiscoveryServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.uiuc.ncsa.security.servlet.AbstractServlet
-
- org.oa4mp.server.api.servlet.storage.EnvServlet
-
- org.oa4mp.server.api.servlet.storage.MyProxyDelegationServlet
-
- org.oa4mp.server.api.servlet.storage.DiscoveryServlet
-
- All Implemented Interfaces:
TransactionFilter
,edu.uiuc.ncsa.security.core.Logable
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
OA2DiscoveryServlet
public class DiscoveryServlet extends MyProxyDelegationServlet
Created by Jeff Gaynor
on 12/12/16 at 1:04 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORIZATION_ENDPOINT
static String
DISCOVERY_PATH
protected String
discoveryPagePath
static String
REGISTRATION_ENDPOINT
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyDelegationServlet
caThread, kpt, lastAccessedThread, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.EnvServlet
ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, notificationListeners, storeUpdatesDone
-
-
Constructor Summary
Constructors Constructor Description DiscoveryServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doIt(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
String
getDiscoveryPagePath()
protected static String
getRequestURI(javax.servlet.http.HttpServletRequest request)
protected static String
getRequestURI(javax.servlet.http.HttpServletRequest request, boolean includePort)
void
setDiscoveryPagePath(String discoveryPagePath)
protected net.sf.json.JSONObject
setValues(javax.servlet.http.HttpServletRequest httpServletRequest, net.sf.json.JSONObject jsonObject)
ServiceTransaction
verifyAndGet(IssuerResponse iResponse)
This is called after the response is received so that the system can get the approproate transaction.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyDelegationServlet
checkClientApproval, createDebugger, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, postprocess, preprocess, realStoreUpdates, say, shutdownCleanup, storeUpdates
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.EnvServlet
addNotificationListener, loadEnvironment, processStoreCheck, removeNotificationListener
-
Methods inherited from class edu.uiuc.ncsa.security.servlet.AbstractServlet
checkContentType, CONST, debug, doGet, doPing, doPost, error, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
AUTHORIZATION_ENDPOINT
public static final String AUTHORIZATION_ENDPOINT
- See Also:
- Constant Field Values
-
REGISTRATION_ENDPOINT
public static final String REGISTRATION_ENDPOINT
- See Also:
- Constant Field Values
-
DISCOVERY_PATH
public static final String DISCOVERY_PATH
- See Also:
- Constant Field Values
-
discoveryPagePath
protected String discoveryPagePath
-
-
Method Detail
-
verifyAndGet
public ServiceTransaction verifyAndGet(IssuerResponse iResponse) throws IOException
Description copied from class:MyProxyDelegationServlet
This is called after the response is received so that the system can get the approproate transaction. Checks for the validity of the transaction should be done here too.- Specified by:
verifyAndGet
in classMyProxyDelegationServlet
- Returns:
- Throws:
IOException
-
getDiscoveryPagePath
public String getDiscoveryPagePath()
-
setDiscoveryPagePath
public void setDiscoveryPagePath(String discoveryPagePath)
-
setValues
protected net.sf.json.JSONObject setValues(javax.servlet.http.HttpServletRequest httpServletRequest, net.sf.json.JSONObject jsonObject)
-
doIt
protected void doIt(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Throwable
- Specified by:
doIt
in classedu.uiuc.ncsa.security.servlet.AbstractServlet
- Throws:
Throwable
-
getRequestURI
protected static String getRequestURI(javax.servlet.http.HttpServletRequest request, boolean includePort)
-
getRequestURI
protected static String getRequestURI(javax.servlet.http.HttpServletRequest request)
-
-