public class RestFormSubmissionHandler
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
RestFormSubmissionHandler(java.lang.Object pResContainer,
                         BeanURI pParsedURI,
                         DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)
Constructor 
 | 
RestFormSubmissionHandler(java.lang.Object pResContainer,
                         BeanURI pParsedURI,
                         RestSecurityProcessor pRestSecurityProcessor,
                         RestSecurityManager pRestSecurityManager,
                         DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addFormInputs(FormTag pFormTag)
This method sets up the form tag based on the parameter inputs given. 
 | 
protected java.util.Collection<java.lang.String> | 
checkAccess(java.util.Collection<java.lang.String> pProperties)
Remove properties from given Collection that don't have access based on the security configuration
 Does not filter if the RestSecurityProcessor is disabled, or RestSecurityManager.isCheckFormHandlerProperties
 is false. 
 | 
boolean | 
execute(RestFormExceptions pFormErrors)
This method handles execution of the form handler method. 
 | 
BeanURI | 
getParsedURI()  | 
DynamoHttpServletRequest | 
getRequest()  | 
protected RestHttpServletRequestWrapper | 
getRequestWrapper()
Wraps the current request with a RestHttpServletRequestWrapper object and returns the wrapper 
 | 
java.lang.Object | 
getResourceContainer()  | 
DynamoHttpServletResponse | 
getResponse()  | 
protected RestHttpServletResponseWrapper | 
getResponseWrapper()
Wraps the current response with a RestHttpServletResponseWrapper object and returns the wrapper 
 | 
RestSecurityManager | 
getRestSecurityManager()  | 
RestSecurityProcessor | 
getRestSecurityProcessor()  | 
protected java.util.Collection<java.lang.String> | 
prioritizeFormTags(java.util.Map<java.lang.String,java.lang.Object> pParams)
prioritize the form tags 
 | 
void | 
setParsedURI(BeanURI pParsedURI)  | 
void | 
setRequest(DynamoHttpServletRequest pRequest)  | 
void | 
setResourceContainer(java.lang.Object pResourceContainer)  | 
void | 
setResponse(DynamoHttpServletResponse pResponse)  | 
void | 
setRestSecurityManager(RestSecurityManager pRestSecurityManager)  | 
void | 
setRestSecurityProcessor(RestSecurityProcessor pRestSecurityProcessor)  | 
public RestFormSubmissionHandler(java.lang.Object pResContainer,
                         BeanURI pParsedURI,
                         DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)
public RestFormSubmissionHandler(java.lang.Object pResContainer,
                         BeanURI pParsedURI,
                         RestSecurityProcessor pRestSecurityProcessor,
                         RestSecurityManager pRestSecurityManager,
                         DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)
public java.lang.Object getResourceContainer()
public void setResourceContainer(java.lang.Object pResourceContainer)
pResourceContainer - the resourceContainer to setpublic BeanURI getParsedURI()
public void setParsedURI(BeanURI pParsedURI)
pParsedURI - the parsedURI to setpublic RestSecurityProcessor getRestSecurityProcessor()
public void setRestSecurityProcessor(RestSecurityProcessor pRestSecurityProcessor)
pRestSecurityProcessor - - set restSecurityProcessorpublic RestSecurityManager getRestSecurityManager()
public void setRestSecurityManager(RestSecurityManager pRestSecurityManager)
pRestSecurityManager - - set restSecurityManagerpublic DynamoHttpServletRequest getRequest()
public void setRequest(DynamoHttpServletRequest pRequest)
pRequest - the request to setpublic DynamoHttpServletResponse getResponse()
public void setResponse(DynamoHttpServletResponse pResponse)
pResponse - the response to setpublic boolean execute(RestFormExceptions pFormErrors) throws RestException, java.io.IOException
RestException - if a ServletException is thrown it is wrapped in a RestExceptionjava.io.IOException - if an exception is thrown when sending the form eventsprotected void addFormInputs(FormTag pFormTag) throws javax.servlet.ServletException
pFormTag - the form tag object representing the form to be executedjavax.servlet.ServletException - if any of the tags could not be addedprotected RestHttpServletRequestWrapper getRequestWrapper()
protected RestHttpServletResponseWrapper getResponseWrapper()
protected java.util.Collection<java.lang.String> prioritizeFormTags(java.util.Map<java.lang.String,java.lang.Object> pParams)
                                                             throws javax.servlet.ServletException
pParams - the functional params for the requestjavax.servlet.ServletException - if there was an error prioritizing
 the tagsprotected java.util.Collection<java.lang.String> checkAccess(java.util.Collection<java.lang.String> pProperties)
the - Collection of properties to check