com.j2biz.blogunity.web.actions.secure.blog.resources
Class UploadResourceAction

java.lang.Object
  extended bycom.j2biz.blogunity.web.actions.AbstractAction
      extended bycom.j2biz.blogunity.web.actions.secure.MyAbstractAction
          extended bycom.j2biz.blogunity.web.actions.secure.blog.resources.BlogResourceAction
              extended bycom.j2biz.blogunity.web.actions.secure.blog.resources.UploadResourceAction
Direct Known Subclasses:
UploadFileAction, UploadImageAction

public abstract class UploadResourceAction
extends BlogResourceAction

Since:
0.1
Author:
michelson

Field Summary
protected  String path
           
 
Fields inherited from class com.j2biz.blogunity.web.actions.secure.blog.resources.BlogResourceAction
FILE, IMAGE, LOG
 
Fields inherited from class com.j2biz.blogunity.web.actions.secure.MyAbstractAction
user
 
Fields inherited from class com.j2biz.blogunity.web.actions.AbstractAction
currentActionPath, navigationStack
 
Constructor Summary
UploadResourceAction()
           
 
Method Summary
 IActionResult execute(HttpServletRequest request, HttpServletResponse response)
           
protected  Blog getBlog()
           
protected  String getPath()
           
protected  FormErrorList postValidateUploadedFile(File uploadedFile, String contentType, FormErrorList errors)
           
 
Methods inherited from class com.j2biz.blogunity.web.actions.secure.blog.resources.BlogResourceAction
getDirectoryFQN, getErrorForward, getFiles, getResourceType, getSuccessForward, getSuccessRedirect
 
Methods inherited from class com.j2biz.blogunity.web.actions.secure.MyAbstractAction
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected String path
Constructor Detail

UploadResourceAction

public UploadResourceAction()
Method Detail

getBlog

protected Blog getBlog()
Specified by:
getBlog in class BlogResourceAction

getPath

protected String getPath()

execute

public IActionResult execute(HttpServletRequest request,
                             HttpServletResponse response)
                      throws BlogunityException
Specified by:
execute in class AbstractAction
Parameters:
request -
response -
Returns:
Throws:
BlogunityException

postValidateUploadedFile

protected FormErrorList postValidateUploadedFile(File uploadedFile,
                                                 String contentType,
                                                 FormErrorList errors)


Copyright (c)j2biz.com