org.onebusaway.api.actions.api
Class ApiActionSupport

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.onebusaway.api.actions.OneBusAwayApiActionSupport
          extended by org.onebusaway.api.actions.api.ApiActionSupport
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.ModelDriven<ResponseBean>, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable
Direct Known Subclasses:
AgenciesWithCoverageAction, AgencyAction, AlarmCallbackAction, ArrivalAndDepartureForStopAction, ArrivalsAndDeparturesForStopAction, BlockAction, BlockInstanceAction, CancelAlarmAction, CancelAlarmsAction, CurrentTimeAction, EstimateCurrentVehicleAction, ExistingDataAction, MinTravelTimeToStopsAction, PlanTripAction, RegisterAlarmForArrivalAndDepartureAtStopAction, ReportProblemWithPlannedTripAction, ReportProblemWithStopAction, ReportProblemWithTripAction, RouteAction, RouteIdsForAgencyAction, RoutesForAgencyAction, RoutesForLocationAction, ScheduleForStopAction, ShapeAction, ShapeIdsForAgencyAction, SituationAction, StopAction, StopIdsForAgencyAction, StopsForLocationAction, StopsForRouteAction, StreetGraphForRegionAction, TripAction, TripDetailsAction, TripForVehicleAction, TripsForAgencyAction, TripsForLocationAction, TripsForRouteAction, UploadDataAction, VehicleAction, VehicleLocationRecordForVehicleAction, VehicleLocationRecordsAction, VehiclesForAgencyAction

public class ApiActionSupport
extends OneBusAwayApiActionSupport
implements com.opensymphony.xwork2.ModelDriven<ResponseBean>

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
ApiActionSupport(int defaultVersion)
           
 
Method Summary
protected  BeanFactoryV2 getBeanFactoryV2()
           
protected  BeanFactoryV2 getBeanFactoryV2(MaxCountSupport maxCount)
           
 ResponseBean getModel()
           
protected  int getReturnVersion()
           
protected  boolean isVersion(int version)
          Protected Methods
protected  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 Methods
protected  org.apache.struts2.rest.DefaultHttpHeaders setResourceNotFoundResponse()
           
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, 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

ApiActionSupport

public ApiActionSupport(int defaultVersion)
Method Detail

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 interface com.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


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()


Copyright © 2011 OneBusAway. All Rights Reserved.