Class WebService
java.lang.Object
org.deltava.service.WebService
- Direct Known Subclasses:
AcademyRideCountService, AIRACVersionService, AircraftIconService, AircraftListService, AirlineListService, AirportInformationService, AirportListService, AirportWeatherService, AllFlightsService, APICodeService, AvailableFlightLegService, AvailableFlightService, BandwidthInfoService, CacheClearService, CacheInfoService, ChatLogService, CheckRideSimulatorService, ClearEndpointsService, ClientVersionService, CoolerQuoteService, CustomAirframeService, DatabaseIDService, DiscordInfoService, DiscordUnregisterService, DispatchRouteListService, DownloadService, DraftFlightPlanService, DuplicateNameService, EarthMapLinkService, EliteStatsService, ErrorLogService, EventCalendarService, EventInfoService, ExportService, FeedbackService, FIRInfoService, FIRLayerService, FleetInfoService, FlightDataExportService, FlightStatsService, FlightTimeStatsService, GateService, GateUpdateService, GateUseService, GoogleEarthService, HealthCheckService, ImageLikeService, InstallerInfoService, IssueTemplateService, JobProfileService, JSONDataService, LoadModelService, LoadStatsService, LogbookPreloadService, LogbookService, MapFlightDataService, MapJSONService, MapPlotService, MapProgressJSONService, MapProgressXMLService, MapRouteService, MapService, MapXMLService, METARService, MyFlightsService, MyRouteMapService, MyTrackService, NavaidSearchService, OceanicPlotService, OnlineStatsService, OnTimeStatsService, PackageDownloadService, PackageRefreshService, PartnerRedirectService, PassengerCountService, PilotLocationClearService, PilotLocationService, PilotNominationService, PilotValidationService, ReportingService, RoutePlanService, RouteService, SearchService, SeriesListService, ServicedAirportService, SimFDRService, SimulatorStatsService, SNSReceiverService, StatusService, SubscribeService, SyndicationService, SystemInfoService, TAFService, TerminalRouteService, TerminalRouteUpdateService, TestService, TextService, TourLegService, TourService, TrackMetadataUpdateService, UnsubscribeService, UpdateAvailableService, UpdateChannelService, URLCheckService, ValidateCAPTCHAService, XAService
Web Services are designed to be light-weight objects that are instantiated using a no-argument constructor and then passed a request and a response.
- Since:
- 1.0
- Version:
- 12.2
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ServiceExceptionCreates a ServiceException.protected static ServiceExceptionCreates a ServiceException.protected static ServiceExceptionCreates a ServiceException.abstract intexecute(ServiceContext ctx) Executes the Web Service.booleanisLogged()Returns whether this web service calls are logged.booleanisSecure()Returns whether this web service requires authentication.
-
Constructor Details
-
WebService
public WebService()
-
-
Method Details
-
execute
Executes the Web Service.- Parameters:
ctx- the Web Service context- Returns:
- the HTTP status code
- Throws:
ServiceException- if an error occurs
-
isSecure
public boolean isSecure()Returns whether this web service requires authentication.- Returns:
- TRUE if authentication is required, otherwise FALSE
-
isLogged
public boolean isLogged()Returns whether this web service calls are logged. High volume services like the Map/ServInfo route services will not be logged.- Returns:
- TRUE if invocation logging should be performed by the servlet, otherwise FALSE
-
error
Creates a ServiceException. This method allows subclasses outside the default package to create a new ServiceException, which has a package-private constructor.- Parameters:
code- the HTTP codemsg- the error message- Returns:
- ServiceException the newly-created ServiceException
- See Also:
-
error
Creates a ServiceException. This method allows subclasses outside the default package to create a new ServiceException, which has a package-private constructor.- Parameters:
code- the HTTP codemsg- the error messagedumpStack- TRUE if a stack dump should be logged, otherwise FALSE- Returns:
- ServiceException the newly-created ServiceException
- See Also:
-
error
Creates a ServiceException. This method allows subclasses outside the default package to create a new ServiceException, which has a package-private constructor.- Parameters:
code- the HTTP codemsg- the error messaget- the root exception- Returns:
- ServiceException the newly-created ServiceException
- See Also:
-