public interface HostSessionPeer
It is also a collection of host session states.
| Modifier and Type | Field and Description | 
|---|---|
| static long | STATE_CommunicationCheck3270: X-COMM. | 
| static long | STATE_CommunicationsError3270: lightning bolt. | 
| static long | STATE_ErrorGeneral error flag. | 
| static long | STATE_FieldFullError3270: X-stickman> | 
| static long | STATE_InsertModeGeneral insert mode flag. | 
| static long | STATE_KeyboardShift5250: KS (not implemented). | 
| static long | STATE_LockGeneral lock flag. | 
| static long | STATE_LULUOwned3270: 4B#. | 
| static long | STATE_MachineCheck3270: X-MACH. | 
| static long | STATE_MessageWaiting5250: MW. | 
| static long | STATE_MinusError3270: X-f. | 
| static long | STATE_MinusErrorXfStickman3270: X-f stickman. | 
| static long | STATE_NonNumericError3270. | 
| static long | STATE_OnFieldOrProtected3270. | 
| static long | STATE_OnlineNotOwned3270: 4B?. | 
| static long | STATE_ProgramCheck3270: X-PROG. | 
| static long | STATE_ReceiveWaitWaiting for data. | 
| static long | STATE_SecureSecured with SSL communication. | 
| static long | STATE_SendingSending data pending. | 
| static long | STATE_SSCPLUOwned3270: 4Bstickman. | 
| static long | STATE_SystemAvailableGeneral system availability. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | connect()Connects the session to host. | 
| boolean | disconnect()Disconnects the session from host. | 
| void | displayHiddenText(boolean display)Informs the session that hidden text should be displayed as bright red
 on black background. | 
| boolean | doesFieldHaveExtendedAttributes(HostField hostField)Checks if a host field has extended attributes or not. | 
| boolean | doesHostNeedFieldExit(int x,
                     int y,
                     int offset,
                     int length,
                     String string)For 5250: checks if a field has the attributes that requires this particular
 string to enter the data followed by a "Field Exit" or "Field Minus" key. | 
| String | getAllowedCharacters()Gets the string of characters that can be input by the user using
 the configured host code page for this session. | 
| void | getCharactersAndAttributes(char[] chars,
                          int[] attrbs,
                          int beginPos,
                          int endPos)Gets the characters and attributes between two positions, including
 the end position. | 
| void | getCharactersAndAttributes(char[] chars,
                          int[] attrbs,
                          int beginPos,
                          int endPos,
                          char fieldOrNullChar)Gets the characters and attributes between two positions, including
 the end position. | 
| int | getClientHostFieldFlags(HostField hostField)Gets flags that are required for the client host fields for local editing, etc. | 
| Point | getCursor()Gets the current host cursor position. | 
| String | getDeviceName()Gets the device name of the session. | 
| int | getHomeAddress()Gets the host address index on the screen. | 
| HostSessionListener2 | getHostSessionListener()Gets the host session listener. | 
| String | getLastError(boolean doClear)Gets the last error message of the session. | 
| int | getNewCharAttribute(HostField hostField)Gets the attribute to use for new characters in a field that contains
 extended attributes (always zero for non-3270). | 
| int | getScreenLength()Gets the current screen length (width * height). | 
| Dimension | getScreenSize()Gets the current screen size. | 
| long | getSessionState()Gets the current session state. | 
| void | initiate(HostSessionListener listener,
        String address,
        int port,
        String peerData)Deprecated. 
 As of version 3.8, use method using HostSessionListener2. | 
| void | initiate2(HostSessionListener2 listener,
         String address,
         int port,
         String peerData)Initiates an instance of the host session, but does not
 connect to the host. | 
| boolean | is3270()Checks if a session is 3270 or 5250. | 
| boolean | isAutoReconnectSessionEnabled()Checks if the use of auto reconnect session is handled or not. | 
| boolean | isFieldFormatted()Checks if this host screen is field formatted. | 
| boolean | isHiddenTextDisplayed()Checks if hidden text is displayed. | 
| boolean | isPrinter()Checks if this is a printer or not. | 
| boolean | isProcessingDataStream()Checks if the session is currently processing data stream commands
 to update the screen/cursor, state, etc. | 
| void | refreshHostFields(HostFields fields)Refreshes the host fields of the current session. | 
| boolean | sendCharacterString(String keys)Sends character keystrokes to host. | 
| boolean | sendKey(int key)Sends keystrokes to host. | 
| boolean | setCursor(int x,
         int y)Sets the host cursor position. | 
| boolean | setHostField(HostField hostField,
            String data,
            int[] attrs)Sets a host field fully with text data and perhaps
 attributes (if these are non-null). | 
| boolean | setHostString(int x,
             int y,
             int offset,
             int length,
             String string)Sets a string to a host field. | 
| boolean | setHostStringAsKeys(int x,
                   int y,
                   int offset,
                   int length,
                   String string)Sets a string to a host field just as if the user typed the characters. | 
| boolean | setInsertMode(boolean on)Sets the insert mode. | 
| void | setLastError(String errMsg)Sets the last error message of the session. | 
static final long STATE_Lock
static final long STATE_Error
static final long STATE_SystemAvailable
static final long STATE_InsertMode
static final long STATE_Sending
static final long STATE_ReceiveWait
static final long STATE_Secure
static final long STATE_MessageWaiting
static final long STATE_KeyboardShift
static final long STATE_OnlineNotOwned
static final long STATE_LULUOwned
static final long STATE_SSCPLUOwned
static final long STATE_ProgramCheck
static final long STATE_CommunicationCheck
static final long STATE_MachineCheck
static final long STATE_FieldFullError
static final long STATE_MinusError
static final long STATE_OnFieldOrProtected
static final long STATE_MinusErrorXfStickman
static final long STATE_NonNumericError
static final long STATE_CommunicationsError
@Deprecated void initiate(HostSessionListener listener, String address, int port, String peerData) throws InternalError
InternalError - Always with message "Deprecated and unsupported method".initiate2(HostSessionListener2, String, int, String)void initiate2(HostSessionListener2 listener, String address, int port, String peerData) throws IOException
IOException - if an I/O error occurs.boolean connect()
boolean disconnect()
Dimension getScreenSize()
int getScreenLength()
boolean sendCharacterString(String keys)
boolean sendKey(int key)
HostSendKeysboolean setHostString(int x,
                      int y,
                      int offset,
                      int length,
                      String string)
boolean setHostStringAsKeys(int x,
                            int y,
                            int offset,
                            int length,
                            String string)
boolean doesHostNeedFieldExit(int x,
                              int y,
                              int offset,
                              int length,
                              String string)
boolean setCursor(int x,
                  int y)
Point getCursor()
void displayHiddenText(boolean display)
boolean isHiddenTextDisplayed()
void getCharactersAndAttributes(char[] chars,
                                int[] attrbs,
                                int beginPos,
                                int endPos)
void getCharactersAndAttributes(char[] chars,
                                int[] attrbs,
                                int beginPos,
                                int endPos,
                                char fieldOrNullChar)
long getSessionState()
void refreshHostFields(HostFields fields)
boolean is3270()
boolean isPrinter()
String getLastError(boolean doClear)
void setLastError(String errMsg)
String getDeviceName()
boolean isProcessingDataStream()
boolean setInsertMode(boolean on)
boolean doesFieldHaveExtendedAttributes(HostField hostField)
int getNewCharAttribute(HostField hostField)
int getClientHostFieldFlags(HostField hostField)
HostSessionListener2 getHostSessionListener()
boolean isAutoReconnectSessionEnabled()
int getHomeAddress()
boolean setHostField(HostField hostField, String data, int[] attrs)
String getAllowedCharacters()
If the return string is empty, for the EE package for example, all characters are "inputable".
boolean isFieldFormatted()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.