public class RepositoryProcessor extends GenericRestProcessor
GenericRestProcessor,
RestProcessor| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
RepositoryProcessor()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createRepositoryItem(MutableRepository pRep,
RepositoryURI pParsedURI,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method handles creating a repository item
|
void |
doRESTDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method handles the processing for a rest DELETE request.
|
void |
doRESTGet(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method handles the processing for a rest GET request.
|
void |
doRESTPost(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method handles the processing for a rest POST resource request.
|
void |
doRESTPut(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method handles the processing for a rest PUT request.
|
boolean |
isAppendMultiValuesByDefault()
get AppendMultiValuesByDefault
|
void |
setAppendMultiValuesByDefault(boolean pAppendMultiValuesByDefault)
set AppendMultiValuesByDefault
|
protected void |
setPropertyValueFromString(java.lang.Object pContainer,
java.lang.String pName,
NameValuePair pValuePair,
ParsedURI pParsedURI,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method sets a property value from a String.
|
determineJSONControlParams, determineJSONUsage, getBooleanControlParam, getComponentResolver, getFilteringManager, getOutputCustomizer, getParentServlet, getStringControlParam, isAcceptJSONInput, isResourceWritable, isResourceWritable, setAcceptJSONInput, setComponentResolver, setOutputCustomizer, setParentServlet, useSimpleResponseCodes, validateResourceaddLogListener, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setAppendMultiValuesByDefault(boolean pAppendMultiValuesByDefault)
pAppendMultiValuesByDefault - the AppendMultiValuesByDefaultpublic boolean isAppendMultiValuesByDefault()
public void doRESTGet(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
pRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occurspublic void doRESTPost(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
pRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occursprotected void createRepositoryItem(MutableRepository pRep, RepositoryURI pParsedURI, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
pParsedURI - an object containing the parsed URIpRep - the repository to create the item inpRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occurspublic void doRESTPut(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
pRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occursprotected void setPropertyValueFromString(java.lang.Object pContainer,
java.lang.String pName,
NameValuePair pValuePair,
ParsedURI pParsedURI,
DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
throws RestException,
java.io.IOException
pContainer - the object to set the property onpName - the name of the property to setpValuePair - this object contains the property name, value, and container in which it existspParsedURI - an object containing the parsed URIpRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs setting the valuejava.io.IOExceptionpublic void doRESTDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
pRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occurs