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 Pilot
authenticate
(ServiceContext ctx, String userID, String pwd) Authenticates a user.protected static String
Returns the XACARS protocol version.protected static Simulator
Returns the simulator used.boolean
isLogged()
Returns whether this web service's calls are logged.protected static void
log
(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:
isLogged
in 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
-