public class BeanProcessor extends GenericRestProcessor
GenericRestProcessor, 
RestProcessor| Modifier and Type | Class and Description | 
|---|---|
class  | 
BeanProcessor.FormHandlerExceptions  | 
class  | 
BeanProcessor.FormHandlerOutputObject  | 
class  | 
BeanProcessor.FormHandlerProperties  | 
class  | 
BeanProcessor.FormHandlerPropertiesAndExceptions  | 
| 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 | 
|---|
BeanProcessor()
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
doRESTDelete(DynamoHttpServletRequest pRequest,
            DynamoHttpServletResponse pResponse)
This method handles 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. 
 | 
protected java.lang.reflect.Method | 
findMethodByParameterCount(java.util.List<java.lang.reflect.Method> pAllMethods)
Try to find a method by comparing the number of supplied parameters with the number of parameters the
 method accepts. 
 | 
protected java.lang.reflect.Method | 
findMethodBySignature(java.util.List<java.lang.reflect.Method> pAllMethods,
                     DynamoHttpServletRequest pRequest,
                     DynamoHttpServletResponse pResponse)
Attempts to find a method by method signature if the "atg-rest-method" parameter was supplied 
 | 
java.lang.String[] | 
getAdditionalFormHandlerClassNames()
This property is a list of fully qualified class names which represent form handler classes
 which do not extend atg.droplet.DropletFormHandler or atg.droplet.ObjectFormHandler. 
 | 
protected java.lang.Object[] | 
getMethodArguments(java.lang.reflect.Method pMethod,
                  DynamoHttpServletRequest pRequest,
                  DynamoHttpServletResponse pResponse)
This method gets the method arguments from either the input stream or url parameters 
 | 
RestSecurityManager | 
getRestSecurityManager()  | 
RestSecurityProcessor | 
getRestSecurityProcessor()  | 
boolean | 
isReturnFormHandlerExceptionsByDefault()
get ReturnFormHandlerExceptionsByDefault 
 | 
boolean | 
isReturnFormHandlerPropertiesByDefault()
get ReturnFormHandlerPropertiesByDefault 
 | 
void | 
setAdditionalFormHandlerClassNames(java.lang.String[] pAdditionalFormHandlerClassNames)  | 
void | 
setRestSecurityManager(RestSecurityManager pRestSecurityManager)  | 
void | 
setRestSecurityProcessor(RestSecurityProcessor pRestSecurityProcessor)  | 
void | 
setReturnFormHandlerExceptionsByDefault(boolean pReturnFormHandlerExceptionsByDefault)
set ReturnFormHandlerExceptionsByDefault 
 | 
void | 
setReturnFormHandlerPropertiesByDefault(boolean pReturnFormHandlerPropertiesByDefault)
set ReturnFormHandlerPropertiesByDefault 
 | 
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 java.lang.String[] getAdditionalFormHandlerClassNames()
public void setAdditionalFormHandlerClassNames(java.lang.String[] pAdditionalFormHandlerClassNames)
pAdditionalFormHandlerClassNames - the additionalFormHandlerClassNames to setpublic void setReturnFormHandlerPropertiesByDefault(boolean pReturnFormHandlerPropertiesByDefault)
pReturnFormHandlerPropertiesByDefault - the ReturnFormHandlerPropertiesByDefaultpublic boolean isReturnFormHandlerPropertiesByDefault()
public void setReturnFormHandlerExceptionsByDefault(boolean pReturnFormHandlerExceptionsByDefault)
pReturnFormHandlerExceptionsByDefault - the ReturnFormHandlerExceptionsByDefaultpublic boolean isReturnFormHandlerExceptionsByDefault()
public RestSecurityProcessor getRestSecurityProcessor()
public void setRestSecurityProcessor(RestSecurityProcessor pRestSecurityProcessor)
pRestSecurityProcessor - - set restSecurityProcessorpublic RestSecurityManager getRestSecurityManager()
public void setRestSecurityManager(RestSecurityManager pRestSecurityManager)
pRestSecurityManager - - set restSecurityManagerpublic 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 java.lang.Object[] getMethodArguments(java.lang.reflect.Method pMethod,
                                    DynamoHttpServletRequest pRequest,
                                    DynamoHttpServletResponse pResponse)
                                         throws RestException
pMethod - the method for which to get the argumentspRequest - the servlet requestpResponse - the servlet responseRestException - if an unexpected error occursprotected java.lang.reflect.Method findMethodBySignature(java.util.List<java.lang.reflect.Method> pAllMethods,
                                             DynamoHttpServletRequest pRequest,
                                             DynamoHttpServletResponse pResponse)
                                                  throws RestException
pAllMethods - a list of all the methods to look through. This is a list of methods that have the same name.pRequest - the servlet requestpResponse - the servlet responseRestException - if an invalid method signature is suppliedprotected java.lang.reflect.Method findMethodByParameterCount(java.util.List<java.lang.reflect.Method> pAllMethods)
pAllMethods - a list of all the methods to look throughpublic 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 occurspublic void doRESTDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, RestException
pRequest - the servlet requestpResponse - the servlet responseRestException - if an error occurs processing the REST requestjava.io.IOException - if an input or output stream exception occursRestProcessor#handleRESTDeleteRequest(java.lang.String, atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)