org.onebusaway.webapp.impl
Class WebappServiceServletImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.onebusaway.webapp.impl.WebappServiceServletImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, WebappService

public class WebappServiceServletImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements WebappService

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
WebappServiceServletImpl()
           
 
Method Summary
 UserBean clearDefaultLocationForUser()
           
protected  com.google.gwt.user.server.rpc.SerializationPolicy doGetSerializationPolicy(javax.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName)
           
 List<AgencyWithCoverageBean> getAgencies()
           
 StopWithArrivalsAndDeparturesBean getArrivalsByStopId(String stopId)
           
 UserBean getCurrentUser()
           
 List<TimedPlaceBean> getLocalPathsToStops(ConstraintsBean constraints, MinTravelTimeToStopsBean travelTimes, List<LocalSearchResult> localResults)
           
 MinTransitTimeResult getMinTravelTimeToStopsFrom(CoordinatePoint location, long time, TransitShedConstraintsBean constraints, int timeSegmentSize)
           
 RouteBean getRouteForId(String routeId)
           
 RoutesBean getRoutes(SearchQueryBean query)
           
 RoutesAndStopsBean getRoutesAndStops(SearchQueryBean query)
           
 StopScheduleBean getScheduleForStop(String stopId, Date date)
           
 StopBean getStop(String stopId)
           
 StopsBean getStops(SearchQueryBean query)
           
 StopsForRouteBean getStopsForRoute(String routeId)
           
 ItinerariesBean getTripsBetween(CoordinatePoint from, CoordinatePoint to, long time, ConstraintsBean constraints)
           
 ListBean<TripDetailsBean> getTripsForBounds(TripsForBoundsQueryBean query)
           
 void init(javax.servlet.ServletConfig config)
           
 UserBean setDefaultLocationForUser(String locationName, double lat, double lon)
           
 void setService(WebappService service)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappServiceServletImpl

public WebappServiceServletImpl()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGetSerializationPolicy

protected com.google.gwt.user.server.rpc.SerializationPolicy doGetSerializationPolicy(javax.servlet.http.HttpServletRequest request,
                                                                                      String moduleBaseURL,
                                                                                      String strongName)
Overrides:
doGetSerializationPolicy in class com.google.gwt.user.server.rpc.RemoteServiceServlet

getAgencies

public List<AgencyWithCoverageBean> getAgencies()
                                         throws ServiceException
Specified by:
getAgencies in interface WebappService
Throws:
ServiceException

setService

public void setService(WebappService service)

getArrivalsByStopId

public StopWithArrivalsAndDeparturesBean getArrivalsByStopId(String stopId)
                                                      throws ServiceException
Specified by:
getArrivalsByStopId in interface WebappService
Throws:
ServiceException

getCurrentUser

public UserBean getCurrentUser()
Specified by:
getCurrentUser in interface WebappService

setDefaultLocationForUser

public UserBean setDefaultLocationForUser(String locationName,
                                          double lat,
                                          double lon)
Specified by:
setDefaultLocationForUser in interface WebappService

clearDefaultLocationForUser

public UserBean clearDefaultLocationForUser()
Specified by:
clearDefaultLocationForUser in interface WebappService

getMinTravelTimeToStopsFrom

public MinTransitTimeResult getMinTravelTimeToStopsFrom(CoordinatePoint location,
                                                        long time,
                                                        TransitShedConstraintsBean constraints,
                                                        int timeSegmentSize)
                                                 throws ServiceException
Specified by:
getMinTravelTimeToStopsFrom in interface WebappService
Throws:
ServiceException

getRouteForId

public RouteBean getRouteForId(String routeId)
                        throws ServiceException
Specified by:
getRouteForId in interface WebappService
Throws:
ServiceException

getRoutes

public RoutesBean getRoutes(SearchQueryBean query)
                     throws ServiceException
Specified by:
getRoutes in interface WebappService
Throws:
ServiceException

getScheduleForStop

public StopScheduleBean getScheduleForStop(String stopId,
                                           Date date)
                                    throws ServiceException
Specified by:
getScheduleForStop in interface WebappService
Throws:
ServiceException

getRoutesAndStops

public RoutesAndStopsBean getRoutesAndStops(SearchQueryBean query)
                                     throws ServiceException
Specified by:
getRoutesAndStops in interface WebappService
Throws:
ServiceException

getStops

public StopsBean getStops(SearchQueryBean query)
                   throws ServiceException
Specified by:
getStops in interface WebappService
Throws:
ServiceException

getStop

public StopBean getStop(String stopId)
                 throws ServiceException
Specified by:
getStop in interface WebappService
Throws:
ServiceException

getStopsForRoute

public StopsForRouteBean getStopsForRoute(String routeId)
                                   throws ServiceException
Specified by:
getStopsForRoute in interface WebappService
Throws:
ServiceException

getTripsForBounds

public ListBean<TripDetailsBean> getTripsForBounds(TripsForBoundsQueryBean query)
Specified by:
getTripsForBounds in interface WebappService

getTripsBetween

public ItinerariesBean getTripsBetween(CoordinatePoint from,
                                       CoordinatePoint to,
                                       long time,
                                       ConstraintsBean constraints)
                                throws ServiceException
Specified by:
getTripsBetween in interface WebappService
Throws:
ServiceException

getLocalPathsToStops

public List<TimedPlaceBean> getLocalPathsToStops(ConstraintsBean constraints,
                                                 MinTravelTimeToStopsBean travelTimes,
                                                 List<LocalSearchResult> localResults)
                                          throws ServiceException
Specified by:
getLocalPathsToStops in interface WebappService
Throws:
ServiceException


Copyright © 2011 OneBusAway. All Rights Reserved.