com.ibm.cics.server
Class Terminal

java.lang.Object
  extended bycom.ibm.cics.server.API
      extended bycom.ibm.cics.server.Terminal
Direct Known Subclasses:
TerminalPrincipalFacility

public class Terminal
extends API

This Class provides the Java interface to a CICS Terminal.


Constructor Summary
Terminal(java.lang.String name)
           
Terminal(java.lang.String name, java.lang.String NETNAME)
           
 
Method Summary
 Cursor getCursor()
          Return the Cursor associated with the terminal.
 java.lang.String getName()
          Return the name of the terminal.
 java.lang.String getUser()
          Return the name of the user currently signed on to the terminal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Terminal

public Terminal(java.lang.String name)
         throws java.lang.NullPointerException,
                InvalidTerminalIdException

Terminal

public Terminal(java.lang.String name,
                java.lang.String NETNAME)
         throws java.lang.NullPointerException,
                InvalidTerminalIdException
Method Detail

getCursor

public Cursor getCursor()
Return the Cursor associated with the terminal.


getName

public java.lang.String getName()
Return the name of the terminal.


getUser

public java.lang.String getUser()
                         throws InvalidRequestException
Return the name of the user currently signed on to the terminal.

Returns:
The name of the user currently signed on to the terminal.
Throws:
InvalidRequestException - an INVREQ condition occurred