|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.droplet.RestFormSubmissionHandler
public class RestFormSubmissionHandler
This class is the link between REST web services and the form handling logic in the platform. It handles calling the form handling logic from outside the traditional form submission process.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
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)
Method Detail |
---|
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 RestException
java.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 executed
javax.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 request
javax.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |