org.onebusaway.presentation.impl.resources
Class ResourceAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.onebusaway.presentation.impl.resources.ResourceAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable
Direct Known Subclasses:
IndexAction, ResourceAction

public class ResourceAction
extends com.opensymphony.xwork2.ActionSupport

See Also:
Serialized Form

Field Summary
protected  String _id
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ResourceAction()
           
 
Method Summary
protected  void ensureResource()
           
 String execute()
           
 String getContentDisposition()
           
 long getContentLength()
           
 String getContentType()
           
 String getId()
           
 InputStream getInputStream()
           
 Date getLastModified()
           
 void setId(String id)
           
 void setResourceService(ResourceService resourceService)
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_id

protected String _id
Constructor Detail

ResourceAction

public ResourceAction()
Method Detail

setResourceService

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:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

ensureResource

protected void ensureResource()


Copyright © 2011 OneBusAway. All Rights Reserved.