public class TerminalSettings extends Object
The per terminal configuration can be done on two ways:
TIMApi reads the configuration file when the first Terminal instance is created.
The class TerminalSettings allows the setting from Application. Each instance of the Terminal class is initialized using an own instance of TerminalSettings containing the configuration relevant for this terminal. The Terminal instances read only the configuration file section with the matching terminal identifier. Multiple terminals can be configured as long as their terminal identifier are different.
All configuration has to be done before an instance of TerminalSettings is used to create a Terminal class instance.
Defines also automatic behavior for interacting with EFT terminals. By default all automatic behaviors are enabled.
Constructor and Description |
---|
TerminalSettings()
Create terminal settings loading the configuration from the global section
in the configuration file.
|
TerminalSettings(InputStreamReader inputReader)
Create terminal settings loading the configuration from the global section
in the configuration file.
|
TerminalSettings(InputStreamReader inputReader,
String deviceId)
Create terminal settings loading the configuration from the device specific
section in the configuration file.
|
TerminalSettings(String deviceId)
Create terminal settings loading the configuration from the device specific
section in the configuration file.
|
TerminalSettings(TerminalSettings settings)
Create copy of terminal settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getBroadcastInterface()
Interface to use for broadcasting or empty string to broadcast on all available interfaces.
|
int |
getCardInsertionTimeout()
Timeout in seconds the terminal waits for a card to be inserted before
canceling an open transaction request.
|
int |
getCardRemovalTimeout()
Timeout in seconds the terminal waits for a card to be removed before
requesting attendant interaction.
|
int |
getCommitTimeout()
Timeout in seconds the terminal waits until the technical auto-reversal
is processed, if no commit received.
|
int |
getConnectionIPPort()
Listening Port of the EFT terminal in case of ConnectionMode OnFixIP.
|
String |
getConnectionIPString()
IP address of the EFT terminal in case of ConnectionMode OnFixIP.
|
ConnectionMode |
getConnectionMode()
Broadcast (default) or OnFixIP.
|
EnumSet<Guides> |
getGuides()
Required guides.
|
String |
getIntegratorId()
Integrator identifier.
|
String |
getLogDir()
Defines where the Log File has to be generated.
|
int |
getLogFileCountPerArchive()
Number of log files to keep before per archive file.
|
int |
getLogRetainArchiveCount()
Number of log file archives to keep before deleting them.
|
int |
getLogRetainFileCount()
Number of log files to keep before archiving them.
|
int |
getManufacturerFlags()
Manufacturer flags.
|
int |
getProceedTimeout()
Timeout in seconds the terminal waits in WaitForProceed state for an
additional function until an error is returned.
|
ProtocolType |
getProtocolType()
Protocol type.
|
int |
getRequestRepetition()
Number of send request repetitions or 0 to disable.
|
String |
getSaferpayBaseUrl()
Saferpay: Base URL.
|
String |
getSaferpayCredentials()
Saferpay: Base64 encoded user name + password.
|
String |
getSaferpayCustomerId()
Saferpay: Customer ID.
|
String |
getSaferpayTerminalId()
Saferpay: Terminal Id.
|
String |
getTerminalId()
Terminal ID to be broadcasted in case of ConnectionMode Broadcast.
|
boolean |
isAllowClosedCardInsert()
Allow card to be inserted before activation.
|
boolean |
isAutoCommit()
After executing the Transaction- function the API commits the transaction automatically.
|
boolean |
isAutoShiftManagement()
Shift management is handled automatically.
|
boolean |
isAutoShutterManagement()
Shutter management is handled automatically.
|
boolean |
isDcc()
Dcc shall be supported.
|
boolean |
isEnabledKeepAlive()
Enable Keep-Alive handling.
|
boolean |
isFastNtfMode()
Enable fast notification mode.
|
boolean |
isFetchBrands()
Automatically retrieves application information during logging in.
|
boolean |
isPartialApproval()
Partial approval shall be supported.
|
boolean |
isTipAllowed()
Tip is allowed for purchase transactions.
|
void |
setAllowClosedCardInsert(boolean allowClosedCardInsert)
Set if it is allowed to insert the card before activation.
|
void |
setAutoCommit(boolean autoCommit)
After executing the Transaction- function the API commits the transaction automatically.
|
void |
setAutoShiftManagement(boolean autoShiftManagement)
Set if shift management is handled automatically.
|
void |
setAutoShutterManagement(boolean autoShutterManagement)
Set if shutter management is handled automatically.
|
void |
setBroadcastInterface(String broadcastInterface)
Set interface to use for broadcasting or empty string to broadcast on all available interfaces.
|
void |
setCardInsertionTimeout(int timeout)
Set timeout in seconds the terminal waits for a card to be inserted before
canceling an open transaction request.
|
void |
setCardRemovalTimeout(int timeout)
Set timeout in seconds the terminal waits for a card to be removed before
requesting attendant interaction.
|
void |
setCommitTimeout(int timeout)
Set timeout in seconds the terminal waits until the technical auto-reversal
is processed, if no commit received.
|
void |
setConnectionIPPort(int connectionIPPort)
Set listening Port of the EFT terminal in case of ConnectionMode OnFixIP.
|
void |
setConnectionIPString(String connectionIPString)
Set IP address of the EFT terminal in case of ConnectionMode OnFixIP.
|
void |
setConnectionMode(ConnectionMode connectionMode)
Set broadcast (default) or OnFixIP.
|
void |
setDcc(boolean dcc)
Set if Dcc shall be supported.
|
void |
setEnableKeepAlive(boolean enableKeepAlive)
Set if Keep-Alive handling is enabled.
|
void |
setFastNtfMode(boolean fastNtfMode)
Set enable fast notification mode.
|
void |
setFetchBrands(boolean fetchBrands)
Automatically retrieves application information during logging in.
|
void |
setGuides(EnumSet<Guides> guides)
Set required guides.
|
void |
setIntegratorId(String integratorId)
Set integrator identifier.
|
void |
setLogDir(String logDir)
Set where the Log File has to be generated.
|
void |
setLogFileCountPerArchive(int logFileCountPerArchive)
Set number of log files to keep before per archive file.
|
void |
setLogRetainArchiveCount(int logRetainArchiveCount)
Set number of log file archives to keep before deleting them.
|
void |
setLogRetainFileCount(int logRetainFileCount)
Set number of log files to keep before archiving them.
|
void |
setManufacturerFlags(int manufacturerFlags)
Set manufacturer flags.
|
void |
setPartialApproval(boolean partialApproval)
Partial approval shall be supported.
|
void |
setProceedTimeout(int timeout)
Set timeout in seconds the terminal waits in WaitForProceed state for an
additional function until an error is returned.
|
void |
setProtocolType(ProtocolType protocolType)
Set protocol type.
|
void |
setRequestRepetition(int requestRepetition)
Set number of send request repetitions or 0 to disable.
|
void |
setSaferpayBaseUrl(String baseUrl)
Saferpay: Set base URL.
|
void |
setSaferpayCredentials(String credentials)
Saferpay: Set Base64 encoded user name + password.
|
void |
setSaferpayCustomerId(String customerId)
Saferpay: Set customer ID.
|
void |
setSaferpayTerminalId(String terminalId)
Saferpay: Set terminal Id.
|
void |
setTerminalId(String terminalId)
Set terminal ID to be broadcasted in case of ConnectionMode Broadcast.
|
void |
setTipAllowed(boolean tipAllowed)
Set if tip is allowed for purchase transactions.
|
String |
toString()
String representation for debugging purpose.
|
public TerminalSettings()
public TerminalSettings(String deviceId)
public TerminalSettings(InputStreamReader inputReader)
public TerminalSettings(InputStreamReader inputReader, String deviceId)
public TerminalSettings(TerminalSettings settings)
settings
- Settings to copypublic String getLogDir()
public void setLogDir(String logDir)
public int getLogRetainFileCount()
public void setLogRetainFileCount(int logRetainFileCount)
public int getLogFileCountPerArchive()
public void setLogFileCountPerArchive(int logFileCountPerArchive)
public int getLogRetainArchiveCount()
public void setLogRetainArchiveCount(int logRetainArchiveCount)
public String getTerminalId()
public void setTerminalId(String terminalId)
public ConnectionMode getConnectionMode()
public void setConnectionMode(ConnectionMode connectionMode)
public String getConnectionIPString()
public void setConnectionIPString(String connectionIPString)
public int getConnectionIPPort()
public void setConnectionIPPort(int connectionIPPort)
public String getBroadcastInterface()
public void setBroadcastInterface(String broadcastInterface)
public ProtocolType getProtocolType()
public void setProtocolType(ProtocolType protocolType)
public String getIntegratorId()
public void setIntegratorId(String integratorId)
public EnumSet<Guides> getGuides()
public void setGuides(EnumSet<Guides> guides)
guides
- Guides to enable. Stores copy. It is safe to change the value
of guides after this call.IllegalArgumentException
- guides does not contain Guides.RETAIL
.public int getManufacturerFlags()
public void setManufacturerFlags(int manufacturerFlags)
public boolean isFetchBrands()
public void setFetchBrands(boolean fetchBrands)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
public boolean isAutoShiftManagement()
public void setAutoShiftManagement(boolean autoShiftManagement)
public boolean isAutoShutterManagement()
public void setAutoShutterManagement(boolean autoShutterManagement)
public int getCardInsertionTimeout()
public void setCardInsertionTimeout(int timeout)
public int getCardRemovalTimeout()
public void setCardRemovalTimeout(int timeout)
public int getCommitTimeout()
public void setCommitTimeout(int timeout)
public boolean isDcc()
public void setDcc(boolean dcc)
public boolean isPartialApproval()
public void setPartialApproval(boolean partialApproval)
public int getProceedTimeout()
public void setProceedTimeout(int timeout)
public boolean isAllowClosedCardInsert()
public void setAllowClosedCardInsert(boolean allowClosedCardInsert)
public boolean isTipAllowed()
Guides.GASTRO
is enabled.public void setTipAllowed(boolean tipAllowed)
Guides.GASTRO
is enabled.public boolean isFastNtfMode()
Guides.AUSTRIAN_USE_CASES
is enabled.public void setFastNtfMode(boolean fastNtfMode)
Guides.AUSTRIAN_USE_CASES
is enabled.public int getRequestRepetition()
public void setRequestRepetition(int requestRepetition)
IllegalArgumentException
- requestRepetition is less than 0.public boolean isEnabledKeepAlive()
public void setEnableKeepAlive(boolean enableKeepAlive)
public String getSaferpayTerminalId()
public void setSaferpayTerminalId(String terminalId)
public String getSaferpayCredentials()
public void setSaferpayCredentials(String credentials)
public String getSaferpayCustomerId()
public void setSaferpayCustomerId(String customerId)
public String getSaferpayBaseUrl()
public void setSaferpayBaseUrl(String baseUrl)