Skip Navigation

About Sending Information to Sabre Emulator

For communicating with Sabre emulator, Red Apps use the services described below. Red Apps can broadcast messages to the Sabre emulator screen, and execute Sabre GDS (host) commands that display the requested commands and respective responses in the Sabre emulator.

The following are the services that communicate with the Sabre emulator:

  • com.sabre.edge.cf.emu.ShowInEmulator

  • com.sabre.edge.cf.emu.ExecuteInEmulator

com.sabre.edge.cf.emu.ShowInEmulator Service

This service sends commands to the Sabre emulator. The command can be treated either as an emulator command or as a message.

If the command is treated as an emulator command, it is displayed in emulator, and the cursor is placed immediately after the command to let the end-user change it.

If the command is treated as a message, the message is displayed, and the cursor is placed in a new line. The end-user cannot change the message.

To use this service, the following attributes are required as part of the request object in ServiceContext.

Request class: com.sabre.edge.cf.emu.data.requests.EmulatorCommandRequest

This class encapsulates the com.sabre.edge.cf.emu.data.EmulatorCommand object, which has the following attributes:

  • command is the command to send to Sabre emulator.

  • isCommand determines whether to treat the information in the command attribute as an emulator command or a message. The default value is false. The value of false treats the information in command as a message.

com.sabre.edge.cf.emu.ExecuteInEmulator Service

This service sends commands to the host through Sabre emulator. You can display any or all of the following on the emulator:

  • The command

  • The response from the Sabre host

To use this service, the following attributes are required as part of the request object in ServiceContext.

Request class: com.sabre.edge.cf.emu.data.requests.EmulatorCommandRequest

This class encapsulates the com.sabre.edge.cf.emu.data.EmulatorCommand object, which has the following attributes:

  • command is the command to send to the host.

  • showCommand displays the command that is sent to the host in emulator. The default value is false.

  • showResponse displays the response from the host in emulator. The default value is false.

Sabre System Special Characters

Use the DisplaySpecialCharacters Java class to include Sabre system special characters. For more information, see Sabre System Special Characters.