Search in sources :

Example 1 with StopScheduleBean

use of org.onebusaway.transit_data.model.StopScheduleBean in project onebusaway-application-modules by camsys.

the class ScheduleForStopAction method show.

public DefaultHttpHeaders show() throws ServiceException {
    if (hasErrors())
        return setValidationErrorsResponse();
    StopScheduleBean stopSchedule = _service.getScheduleForStop(_id, _date);
    BeanFactoryV2 factory = getBeanFactoryV2();
    return setOkResponse(factory.getResponse(stopSchedule));
}
Also used : StopScheduleBean(org.onebusaway.transit_data.model.StopScheduleBean) BeanFactoryV2(org.onebusaway.api.model.transit.BeanFactoryV2)

Aggregations

BeanFactoryV2 (org.onebusaway.api.model.transit.BeanFactoryV2)1 StopScheduleBean (org.onebusaway.transit_data.model.StopScheduleBean)1