|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.slim3.struts.action.S3RequestProcessor
public class S3RequestProcessor
RequestProcessor
for Slim3.
Nested Class Summary | |
---|---|
protected static class |
S3RequestProcessor.IndexParsedResult
|
Field Summary |
---|
Fields inherited from class org.apache.struts.action.RequestProcessor |
---|
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, log, moduleConfig, servlet |
Constructor Summary | |
---|---|
S3RequestProcessor()
|
Method Summary | |
---|---|
protected int[] |
addArray(int[] array,
int value)
Adds the int value to the array. |
protected Class<?> |
convertConcreteClass(Class<?> clazz)
Converts the abstract class to the concrete class. |
protected Object |
expandArray(Object array,
int[] indexes,
Class<?> elementClass)
Expands the array. |
protected void |
exportProperties(HttpServletRequest request,
HttpServletResponse response,
BeanDesc beanDesc,
boolean redirect)
Exports action properties to request, session, cookie. |
protected Map<String,Object> |
getAllParameters(HttpServletRequest request,
MultipartRequestHandler multipartHandler)
Returns all request parameters. |
protected Class<?> |
getArrayElementClass(Class<?> clazz,
int depth)
Returns the element class of the array. |
protected Object |
getArrayValue(Object array,
int[] indexes,
Class<?> elementClass)
Returns the value of the array. |
protected Object |
getIndexedProperty(Object bean,
String name,
int[] indexes)
Returns the indexed property. |
protected MultipartRequestHandler |
getMultipartHandler(String multipartClass)
Returns the multipart request handler. |
protected Object |
getSimpleProperty(Object bean,
String name)
Returns simple property. |
protected S3RequestProcessor.IndexParsedResult |
parseIndex(String name)
Parses the indexed property name. |
void |
process(HttpServletRequest request,
HttpServletResponse response)
|
protected Action |
processActionCreate(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping)
|
protected ActionForm |
processActionForm(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping)
|
protected void |
processExecuteConfig(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping)
Sets execute configuration. |
protected void |
processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
ForwardConfig forward)
Forward or redirect to the specified destination. |
protected ActionMapping |
processMapping(HttpServletRequest request,
HttpServletResponse response,
String path)
|
protected HttpServletRequest |
processMultipart(HttpServletRequest request)
|
protected void |
processPopulate(HttpServletRequest request,
HttpServletResponse response,
ActionForm form,
ActionMapping mapping)
|
protected boolean |
processRoles(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping)
|
protected void |
setArrayValue(Object array,
int[] indexes,
Object value)
Sets the value of the array. |
protected void |
setIndexedProperty(Object bean,
String name,
int[] indexes,
Object value)
Sets indexed property. |
protected void |
setProperty(Object bean,
String name,
Object value)
Sets request parameter to the property of the action. |
protected void |
setSimpleProperty(Object bean,
String name,
Object value)
Sets simple property. |
Methods inherited from class org.apache.struts.action.RequestProcessor |
---|
destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, log, log, processActionPerform, processCachedMessages, processContent, processException, processForward, processInclude, processLocale, processNoCache, processPath, processPreprocess, processValidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public S3RequestProcessor()
Method Detail |
---|
public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
process
in class RequestProcessor
IOException
ServletException
protected HttpServletRequest processMultipart(HttpServletRequest request)
processMultipart
in class RequestProcessor
protected ActionMapping processMapping(HttpServletRequest request, HttpServletResponse response, String path) throws IOException
processMapping
in class RequestProcessor
IOException
protected void processExecuteConfig(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IllegalStateException
request
- the requestresponse
- the responsemapping
- the action mapping
IllegalStateException
- if execute method is not specifiedprotected boolean processRoles(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException
processRoles
in class RequestProcessor
IOException
ServletException
protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
processActionForm
in class RequestProcessor
protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException
processActionCreate
in class RequestProcessor
IOException
protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException
processPopulate
in class RequestProcessor
ServletException
protected MultipartRequestHandler getMultipartHandler(String multipartClass) throws ServletException
multipartClass
- the name of multipart request handler
ServletException
- if an exception is encountered.protected Map<String,Object> getAllParameters(HttpServletRequest request, MultipartRequestHandler multipartHandler)
request
- the requestmultipartHandler
- the multipart request handler
protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException
processForwardConfig
in class RequestProcessor
request
- the requestresponse
- the responseforward
- the forward configuration
IOException
- if IOException
error occurs
ServletException
- if ServletException
occursprotected void exportProperties(HttpServletRequest request, HttpServletResponse response, BeanDesc beanDesc, boolean redirect)
request
- the requestresponse
- the responsebeanDesc
- the bean descriptorredirect
- redirect flagprotected void setProperty(Object bean, String name, Object value)
bean
- the beanname
- the parameter namevalue
- the parameter valueprotected Object getSimpleProperty(Object bean, String name)
bean
- the beanname
- the property name
protected void setSimpleProperty(Object bean, String name, Object value)
bean
- the beanname
- the parameter namevalue
- the parameter valueprotected Object getIndexedProperty(Object bean, String name, int[] indexes)
bean
- the beanname
- the property nameindexes
- The array of indexes
protected void setIndexedProperty(Object bean, String name, int[] indexes, Object value)
bean
- the beanname
- the property nameindexes
- the array of indexesvalue
- the valueprotected Class<?> getArrayElementClass(Class<?> clazz, int depth)
clazz
- the class of the arraydepth
- the array depth
protected Object expandArray(Object array, int[] indexes, Class<?> elementClass)
array
- the arrayindexes
- the array of indexeselementClass
- the element class of the array
protected int[] addArray(int[] array, int value)
array
- the arrayvalue
- the int value
protected Object getArrayValue(Object array, int[] indexes, Class<?> elementClass)
array
- the arrayindexes
- the array of indexeselementClass
- the element class of the array
protected void setArrayValue(Object array, int[] indexes, Object value)
array
- the arrayindexes
- the array of indexesvalue
- the value of the arrayprotected Class<?> convertConcreteClass(Class<?> clazz)
clazz
- the class
protected S3RequestProcessor.IndexParsedResult parseIndex(String name)
name
- the property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |