Class ResourceAction

  • All Implemented Interfaces:
    com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

    public class ResourceAction
    extends com.opensymphony.xwork2.ActionSupport
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • ResourceAction

        public ResourceAction()
    • Method Detail

      • setResourceService

        @Autowired
        public void setResourceService​(ResourceService resourceService)
      • setId

        public void setId​(String id)
      • getId

        public String getId()
      • getContentType

        public String getContentType()
      • getContentLength

        public long getContentLength()
      • getContentDisposition

        public String getContentDisposition()
      • getLastModified

        public Date getLastModified()
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • ensureResource

        protected void ensureResource()