Class XAService

java.lang.Object
org.deltava.service.WebService
org.deltava.service.xacars.XAService
Direct Known Subclasses:
ACKService, EndFlightService, MessageService, StartFlightService, XAddressService, XInfoService, XPIREPService

abstract class XAService extends WebService
A Web Service to support XACARS HTTP requests.
Since:
4.1
Version:
11.0
Author:
Luke
  • Constructor Details

    • XAService

      XAService()
  • Method Details

    • isLogged

      public boolean isLogged()
      Returns whether this web service's calls are logged.
      Overrides:
      isLogged in class WebService
      Returns:
      FALSE
    • log

      protected static void log(ServiceContext ctx)
      Logs XACARS request parameters.
      Parameters:
      ctx - the ServiceContext
    • getProtocolVersion

      protected static String getProtocolVersion(ServiceContext ctx)
      Returns the XACARS protocol version.
      Parameters:
      ctx - the ServiceContext
      Returns:
      the protocol version
    • getSimulator

      protected static Simulator getSimulator(ServiceContext ctx)
      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 ServiceContext
      userID - the UserID
      pwd - the password
      Returns:
      the Pilot if authenticated
      Throws:
      SecurityException - if authentication failed