org.onebusaway.api.actions.siri
Class VehicleMonitoringAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.onebusaway.api.actions.OneBusAwayApiActionSupport
          extended by org.onebusaway.api.actions.siri.VehicleMonitoringAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.ModelDriven<Object>, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.ServletRequestAware

public class VehicleMonitoringAction
extends OneBusAwayApiActionSupport
implements com.opensymphony.xwork2.ModelDriven<Object>, org.apache.struts2.interceptor.ServletRequestAware

For a given vehicle or set of vehicles, returns the location. Can select vehicles by id, trip, or route.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
VehicleMonitoringAction()
           
 
Method Summary
 Object getModel()
           
 TransitDataService getService()
           
 org.apache.struts2.rest.DefaultHttpHeaders index()
          This is the default action, corresponding to a SIRI VehicleMonitoringRequest
 void setService(TransitDataService service)
           
 void setServletRequest(javax.servlet.http.HttpServletRequest request)
           
 void setTime(Date time)
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, 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
 

Constructor Detail

VehicleMonitoringAction

public VehicleMonitoringAction()
Method Detail

setTime

public void setTime(Date time)

index

public org.apache.struts2.rest.DefaultHttpHeaders index()
                                                 throws IOException
This is the default action, corresponding to a SIRI VehicleMonitoringRequest

Returns:
Throws:
IOException

getModel

public Object getModel()
Specified by:
getModel in interface com.opensymphony.xwork2.ModelDriven<Object>

setServletRequest

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

setService

public void setService(TransitDataService service)

getService

public TransitDataService getService()


Copyright © 2012 OneBusAway. All Rights Reserved.