Class XAService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.xacars.XAService
- Direct Known Subclasses:
ACKService,EndFlightService,MessageService,StartFlightService,XAddressService,XInfoService,XPIREPService
A Web Service to support XACARS HTTP requests.
- Since:
- 4.1
- Version:
- 11.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Pilotauthenticate(ServiceContext ctx, String userID, String pwd) Authenticates a user.protected static StringReturns the XACARS protocol version.protected static SimulatorReturns the simulator used.booleanisLogged()Returns whether this web service's calls are logged.protected static voidlog(ServiceContext ctx) Logs XACARS request parameters.
-
Constructor Details
-
XAService
XAService()
-
-
Method Details
-
isLogged
public boolean isLogged()Returns whether this web service's calls are logged.- Overrides:
isLoggedin classWebService- Returns:
- FALSE
-
log
Logs XACARS request parameters.- Parameters:
ctx- the ServiceContext
-
getProtocolVersion
Returns the XACARS protocol version.- Parameters:
ctx- the ServiceContext- Returns:
- the protocol version
-
getSimulator
Returns the simulator used.- Parameters:
ctx- the ServiceContext- Returns:
- the Simulator
-
authenticate
protected static Pilot authenticate(ServiceContext ctx, String userID, String pwd) throws SecurityException Authenticates a user.- Parameters:
ctx- the ServiceContextuserID- the UserIDpwd- the password- Returns:
- the Pilot if authenticated
- Throws:
SecurityException- if authentication failed
-