Package org.onebusaway.api.actions.api
Class ApiActionSupport
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- org.onebusaway.api.actions.OneBusAwayApiActionSupport
-
- org.onebusaway.api.actions.api.ApiActionSupport
-
- All Implemented Interfaces:
com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.ModelDriven<ResponseBean>
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AgenciesWithCoverageAction
,AgencyAction
,AlarmCallbackAction
,ArrivalAndDepartureForStopAction
,ArrivalsAndDeparturesForLocationAction
,ArrivalsAndDeparturesForStopAction
,BlockAction
,BlockInstanceAction
,CancelAlarmAction
,CancelAlarmsAction
,ConfigAction
,CurrentTimeAction
,EstimateCurrentVehicleAction
,ExistingDataAction
,ExternalAccessAction
,GtfsIdAction
,GtfsRealtimeActionSupport
,HistoricalOccupancyByStopAction
,IdAction
,LegacyIdAction
,ListAction
,NameAction
,NtdIdAction
,RegisterAlarmForArrivalAndDepartureAtStopAction
,ReportProblemWithStopAction
,ReportProblemWithTripAction
,RouteAction
,RouteIdsForAgencyAction
,RoutesForAgencyAction
,RoutesForLocationAction
,ScheduleForRouteAction
,ScheduleForStopAction
,ShapeAction
,ShapeIdsForAgencyAction
,ShortNameAction
,SiriAction
,SituationAction
,StopAction
,StopIdsForAgencyAction
,StopsForLocationAction
,StopsForRouteAction
,TripAction
,TripDetailsAction
,TripForVehicleAction
,TripsForAgencyAction
,TripsForLocationAction
,TripsForRouteAction
,UploadDataAction
,VehicleAction
,VehicleLocationRecordForVehicleAction
,VehicleLocationRecordsAction
,VehiclePositionForVehicleAction
,VehiclesForAgencyAction
public class ApiActionSupport extends OneBusAwayApiActionSupport implements com.opensymphony.xwork2.ModelDriven<ResponseBean>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ResponseBean
_response
-
Constructor Summary
Constructors Constructor Description ApiActionSupport(int defaultVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanFactoryV2
getBeanFactoryV2()
protected BeanFactoryV2
getBeanFactoryV2(MaxCountSupport maxCount)
ResponseBean
getModel()
protected int
getReturnVersion()
long
getTime()
protected boolean
isVersion(int version)
Protected Methodsprotected org.apache.struts2.rest.DefaultHttpHeaders
setExceptionResponse()
void
setIncludeReferences(boolean includeReferences)
void
setKey(String key)
protected org.apache.struts2.rest.DefaultHttpHeaders
setOkResponse(Object data)
Response Bean Generation Methodsprotected org.apache.struts2.rest.DefaultHttpHeaders
setOkResponseText(String text)
protected org.apache.struts2.rest.DefaultHttpHeaders
setResourceNotFoundResponse()
void
setTime(long time)
protected org.apache.struts2.rest.DefaultHttpHeaders
setUnknownVersionResponse()
protected org.apache.struts2.rest.DefaultHttpHeaders
setValidationErrorsResponse()
void
setVersion(int version)
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, 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
-
_response
protected ResponseBean _response
-
-
Method Detail
-
setTime
public void setTime(long time)
-
getTime
public long getTime()
-
setVersion
public void setVersion(int version)
-
setKey
public void setKey(String key)
-
setIncludeReferences
public void setIncludeReferences(boolean includeReferences)
-
getModel
public ResponseBean getModel()
- Specified by:
getModel
in interfacecom.opensymphony.xwork2.ModelDriven<ResponseBean>
-
isVersion
protected boolean isVersion(int version)
Protected Methods- Parameters:
version
-- Returns:
-
getBeanFactoryV2
protected BeanFactoryV2 getBeanFactoryV2()
-
getBeanFactoryV2
protected BeanFactoryV2 getBeanFactoryV2(MaxCountSupport maxCount)
-
setOkResponse
protected org.apache.struts2.rest.DefaultHttpHeaders setOkResponse(Object data)
Response Bean Generation Methods
-
setOkResponseText
protected org.apache.struts2.rest.DefaultHttpHeaders setOkResponseText(String text)
-
setValidationErrorsResponse
protected org.apache.struts2.rest.DefaultHttpHeaders setValidationErrorsResponse()
-
setResourceNotFoundResponse
protected org.apache.struts2.rest.DefaultHttpHeaders setResourceNotFoundResponse()
-
setExceptionResponse
protected org.apache.struts2.rest.DefaultHttpHeaders setExceptionResponse()
-
setUnknownVersionResponse
protected org.apache.struts2.rest.DefaultHttpHeaders setUnknownVersionResponse()
-
getReturnVersion
protected int getReturnVersion()
-
-