public class RepositoryServlet extends DynamoServlet
This class serves as a base class for servlet interaction with a Repository.
RepositoryQueryServlet
Modifier and Type | Class and Description |
---|---|
class |
RepositoryServlet.RepositoryParameters
A class used to hold parameters sent to a RepositoryServlet
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
OUTPUT
Parameter used to hold output of the servlet
|
static java.lang.String |
REPOSITORY
Parameter used to hold the name of a repository
|
static java.lang.String |
VIEWNAME
Parameter used to hold the name of a view in a repository
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RepositoryServlet()
Constructs an instanceof RepositoryServlet
|
Modifier and Type | Method and Description |
---|---|
protected RepositoryView |
getDefaultView(Repository pRepository)
Access the default view of a repository
|
protected java.lang.String |
getDefaultViewName(Repository pRepository)
Access the default view name of a repository
|
protected void |
getInputParameters(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
RepositoryServlet.RepositoryParameters pRParams)
Gets the RepositoryParameters for a serviced request
|
Repository |
getRepository()
Returns property Repository
|
protected Repository |
getRepositoryParam(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Gets the Repository param for a serviced request
|
protected RepositoryView |
getRepositoryView(Repository pRepository,
java.lang.String pViewName)
Access a view of a repository
|
protected java.lang.String |
getViewNameParam(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Gets the Repository view for a serviced request
|
void |
setRepository(Repository r)
Sets property Repository
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String REPOSITORY
public static final java.lang.String VIEWNAME
public static final java.lang.String OUTPUT
public RepositoryServlet()
public Repository getRepository()
public void setRepository(Repository r)
protected java.lang.String getDefaultViewName(Repository pRepository)
pRepository
- the repositoryprotected RepositoryView getDefaultView(Repository pRepository)
pRepository
- the repositoryprotected RepositoryView getRepositoryView(Repository pRepository, java.lang.String pViewName)
pRepository
- the repositorypViewName
- the name of the viewprotected void getInputParameters(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, RepositoryServlet.RepositoryParameters pRParams)
pRequest
- the servlet requestpResponse
- the servlet responsepRParams
- RepositoryParametersprotected Repository getRepositoryParam(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet requestpResponse
- the servlet responseprotected java.lang.String getViewNameParam(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
pRequest
- the servlet requestpResponse
- the servlet response