Class ResourceAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- org.onebusaway.presentation.impl.resources.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
-
-
Constructor Summary
Constructors Constructor Description ResourceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureResource()Stringexecute()StringgetContentDisposition()longgetContentLength()StringgetContentType()StringgetId()InputStreamgetInputStream()DategetLastModified()voidsetId(String id)voidsetResourceService(ResourceService resourceService)-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
-
-
-
Field Detail
-
_id
protected String _id
-
-
Method Detail
-
setResourceService
@Autowired public void setResourceService(ResourceService resourceService)
-
setId
public void setId(String id)
-
getId
public String getId()
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
getContentType
public String getContentType()
-
getContentLength
public long getContentLength()
-
getContentDisposition
public String getContentDisposition()
-
getLastModified
public Date getLastModified()
-
execute
public String execute() throws Exception
- Specified by:
executein interfacecom.opensymphony.xwork2.Action- Overrides:
executein classcom.opensymphony.xwork2.ActionSupport- Throws:
Exception
-
ensureResource
protected void ensureResource()
-
-