Class AttachFileAction

  • All Implemented Interfaces:
    Beanable, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.ServletRequestAware, org.apache.struts2.interceptor.ServletRequestAware

    public class AttachFileAction
    extends ConfluenceActionSupport
    implements org.apache.struts2.interceptor.ServletRequestAware, Beanable
    Upload attachments via a multipart request. Typically used via AJAX.
    See Also:
    Serialized Form
    • Constructor Detail

      • AttachFileAction

        public AttachFileAction()
    • Method Detail

      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • execute

        public String execute()
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
      • setContentId

        public void setContentId​(long contentId)
      • setServletRequest

        public void setServletRequest​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAware
      • setAttachmentManager

        public void setAttachmentManager​(AttachmentManager attachmentManager)
      • setFileUploadManager

        public void setFileUploadManager​(FileUploadManager fileUploadManager)
      • setContentEntityManager

        public void setContentEntityManager​(ContentEntityManager contentEntityManager)
      • setResponseFormat

        public void setResponseFormat​(String responseFormat)