Class JSONDataService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.servinfo.JSONDataService
- Direct Known Subclasses:
OnlineFlightsService, OnlineIDService
An abstract class to support Web Services formatting common JSON objects
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.json.JSONObjectformat(Pilot p, OnlineNetwork net) Formats a Pilot as a JSON Object.Methods inherited from class WebService
error, error, error, execute, isLogged, isSecureModifier 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
-
JSONDataService
JSONDataService()
-
-
Method Details
-
format
Formats a Pilot as a JSON Object.- Parameters:
p- the Pilotnet- the OnlineNetwork- Returns:
- a JSONObject
-