|
Verastream© Bridge Integrator 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BridgeAPI
This is a modernized Verastream Bridge Integrator's BridgeAPI
This implementation support some basic Java logging.
SEVERE - major problems and exceptions
WARNING - unexpected exception that will be correctly thrown as part of the API
FINE - common documented exceptions that are about to be thrown as part of the API
FINER - arguments passed into the API
FINEST - return values from the API
Method Summary | |
---|---|
void |
changePassword(java.lang.String hostIP,
int hostPort,
java.lang.String userId,
java.lang.String password,
java.lang.String newPassword)
Changes the password for a given userId. |
void |
connectBridge(java.lang.String hostIP,
int hostPort,
TerminalModelType terminalModel,
java.lang.String userid,
java.lang.String password,
java.lang.String terminalPoolName)
Obtains a session state context from the host data engine. |
void |
connectBridge(java.lang.String hostIP,
int hostPort,
TerminalModelType terminalModel,
java.lang.String userid,
java.lang.String password,
java.lang.String terminalPoolName,
java.lang.String networkName,
java.lang.String terminalFacilityLike)
Obtains a session state context from the host data engine. |
void |
disconnect()
Disconnects the session, releasing the session state context from the host data engine. |
Position |
findString(java.lang.String stringToFind,
Position position,
java.util.EnumSet<FindFlag> flags)
Attempts to locate a given string on the current screen, beginning at a specified row and column position. |
java.lang.String |
getCurrentScreenName()
Returns the name of the current host screen. |
Position |
getCursorPosition()
Retrieves the cursor position on the current host screen. |
Attribute |
getFieldAttribute(java.lang.String fieldName)
Retrieves the attribute of a specified field on the current screen. |
Dimension |
getFieldCoordinates(java.lang.String fieldName)
Retrieves the coordinates (row, column, and length) of a specified field on the current screen. |
int |
getFieldCount()
Retrieves the number of fields on the screen. |
java.lang.String |
getFieldNameFromIndex(int fieldIndex)
Retrieves the name for the field with the specified index on the current screen. |
java.lang.String |
getFieldValue(java.lang.String fieldName)
Retrieves the value of the specified field on the current screen. |
ScreenInformation |
getScreenInformation()
Gets all relevant information for a given session. |
java.lang.String |
getString(Position position,
int length)
Retrieves any text on the current screen at the specified row, column, and length. |
java.lang.String |
getTerminalID()
Retrieves the checked out terminal ID for this session. |
TerminalModelType |
getTerminalModelType()
Retrieves the Terminal Model Type. |
TraceConfiguration |
getTraceConfiguration()
Retrieves the TraceConfiguration object to allow you to turn host tracing on or off. |
boolean |
isConnected()
Returns the status of the host connection. |
int |
putString(java.lang.String text,
Position position)
Writes text to the session presentation space beginning at the row and column specified. |
void |
sendKeys(java.lang.String keys)
Writes text to the session presentation space beginning at the current cursor position. |
java.lang.String |
sendKeysGetString(java.lang.String keys,
Position position,
int length)
Sends a sequence of keystrokes and AID keys to the host and retrieves any text on the current screen at the specified row, column, and length. |
void |
setCursorPosition(Position position)
Sets the cursor position on the current host screen. |
void |
setFieldValue(java.util.List<java.lang.String> fields,
java.util.List<java.lang.String> values)
Sets the value of an array of specified unprotected fields on the current screen with a single call. |
void |
setFieldValue(java.lang.String field,
java.lang.String value)
Sets the value of the specified unprotected field on the current screen. |
ScreenInformation |
x3270Screen(java.lang.String keys,
java.util.List<java.lang.String> fieldNames,
java.util.List<java.lang.String> fieldValues)
Place String value into the specified 3270 field of the current screen buffer, execute an AID key sequence, and get all relevant 3270 information from the requested screen in a given session. |
ScreenInformation |
x3270Screen(java.lang.String keys,
java.lang.String fieldName,
java.lang.String fieldValue)
Place String value into the specified 3270 field of the current screen buffer, execute an AID key sequence, and get all relevant 3270 information from the requested screen in a given session. |
Method Detail |
---|
void connectBridge(java.lang.String hostIP, int hostPort, TerminalModelType terminalModel, java.lang.String userid, java.lang.String password, java.lang.String terminalPoolName, java.lang.String networkName, java.lang.String terminalFacilityLike) throws BridgeException
hostIP
- IP address of the target host CICS region (for example, '234.164.88.1').hostPort
- Port corresponding to the target CICS region.terminalModel
- 3270 terminal model type (valid values: 2 for Model 2, 3 for Model 3, 4 for Model 4, 5 for Model 5).userid
- The user ID for the host data engine to use with the External Security Manager on behalf of this session. If no userid is desired, use a null.password
- The password for the host data engine to use with the External Security Manager on behalf of this session. If no userid is desired, use a null.terminalPoolName
- The terminal pool name from which to draw the desired 3270 connection. If no particular pool is desired, pass in null.networkName
- The one to eight character to be assigned to the pseudo LU for the new connection. To use default name for this connection, pass in null.terminalFacilityLike
- The optional text format IP address of the requesting client. To omit client IP address, pass in null.
BridgeException
void connectBridge(java.lang.String hostIP, int hostPort, TerminalModelType terminalModel, java.lang.String userid, java.lang.String password, java.lang.String terminalPoolName) throws BridgeException
hostIP
- IP address of the target host CICS region (for example, '234.164.88.1').hostPort
- Port corresponding to the target CICS region.terminalModel
- 3270 terminal model type (valid values: 2 for Model 2, 3 for Model 3, 4 for Model 4, 5 for Model 5).userid
- The user ID for the host data engine to use with the External Security Manager on behalf of this session. If no userid is desired, use a null.password
- The password for the host data engine to use with the External Security Manager on behalf of this session. If no userid is desired, use a null.terminalPoolName
- The terminal pool name from which to draw the desired 3270 connection. If no particular pool is desired, pass in null.
BridgeException
void disconnect() throws BridgeException
BridgeException
Position findString(java.lang.String stringToFind, Position position, java.util.EnumSet<FindFlag> flags) throws BridgeException
stringToFind
- The string to search for on the current screen.position
- The row, col position at which to start the searchflags
- is the EnumSet of flags that will control the find behavior. A value of null will perform a screen-wide, case-sensitive,
non-wrapping, forward search.
BridgeException
boolean isConnected() throws BridgeException
BridgeException
java.lang.String getCurrentScreenName() throws BridgeException
BridgeException
Position getCursorPosition() throws BridgeException
BridgeException
Attribute getFieldAttribute(java.lang.String fieldName) throws BridgeException
fieldName
- The name of the field.
BridgeException
Dimension getFieldCoordinates(java.lang.String fieldName) throws BridgeException
fieldName
- The name of the field for which coordinates are desired.
BridgeException
int getFieldCount() throws BridgeException
BridgeException
java.lang.String getFieldNameFromIndex(int fieldIndex) throws BridgeException
fieldIndex
- The index number of the field on the screen. The index is zero-based. This number must be less than the number of fields returned in getFieldCount().
BridgeException
java.lang.String getFieldValue(java.lang.String fieldName) throws BridgeException
fieldName
- The name of the field for which you are requesting a value.
BridgeException
ScreenInformation getScreenInformation() throws BridgeException
BridgeException
TerminalModelType getTerminalModelType() throws BridgeException
BridgeException
java.lang.String getString(Position position, int length) throws BridgeException
position
- The row, col position on the host screen at which to begin retrieving text.length
- The length of the text string to be retrieved. If this value is zero, the text is retrieved up to the end of the screen.
BridgeException
java.lang.String getTerminalID() throws BridgeException
BridgeException
int putString(java.lang.String text, Position position) throws BridgeException
text
- The text string to write, beginning at the specified position.position
- The row, col position on the host screen at which to begin writing the text string.
BridgeException
void sendKeys(java.lang.String keys) throws BridgeException
keys
- The keys to send to the host. The HLLAPI representations for special keys that can be used follows:
AID key : Key Sequence BridgeException
java.lang.String sendKeysGetString(java.lang.String keys, Position position, int length) throws BridgeException
keys
- The HLLAPI style string of keys to send before collecting the requested string.position
- The row, col position on the host screen at which to begin retrieving text.length
- The length of the text string to be retrieved. If this value is zero, the text is retrieved up to the end of the screen.
BridgeException
void setCursorPosition(Position position) throws BridgeException
position
- The cursor row, col position. The first row and col is 1.
BridgeException
void setFieldValue(java.util.List<java.lang.String> fields, java.util.List<java.lang.String> values) throws BridgeException
fields
- A List of type String, each occurrence of which describes the name of the field to have its value replaced.values
- A List of type String, each occurrence of which specifies the new value to be placed into the above named field.
BridgeException
void setFieldValue(java.lang.String field, java.lang.String value) throws BridgeException
field
- The field for which a value is to be set.value
- The value to set for the specified field.
BridgeException
TraceConfiguration getTraceConfiguration()
ScreenInformation x3270Screen(java.lang.String keys, java.lang.String fieldName, java.lang.String fieldValue) throws BridgeException
keys
- A string to be typed into the 3270 session including Verastream® Bridge Integrator mnemonics:fieldName
- String containing the name of the 3270 field into which the value should be placedfieldValue
- String containing the value to place into the field identified by fieldName
BridgeException
ScreenInformation x3270Screen(java.lang.String keys, java.util.List<java.lang.String> fieldNames, java.util.List<java.lang.String> fieldValues) throws BridgeException
keys
- A string to be typed into the 3270 session including Verastream® Bridge Integrator mnemonics, see x3270Screen(String, String, String)fieldNames
- List of Strings with the names of the 3270 fields into which values should be placedfieldValues
- List of Strings containing the values to place into the fields identified by the correlated inFieldNames array
BridgeException
void changePassword(java.lang.String hostIP, int hostPort, java.lang.String userId, java.lang.String password, java.lang.String newPassword) throws BridgeException
hostIP
- IP address of target CICS region in the form of nnn.nnn.nnn.nnn.hostPort
- TCP port address of target CICS region.userId
- User identification one to eight characters in length.password
- Existing password one to eight characters in length for the given userId.newPassword
- Proposed new password one to eight characters in length to use for the given userId.
BridgeException
|
Verastream© Bridge Integrator 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |