Class TdbWebSession

All Implemented Interfaces:
com.tietoenator.trip.jxp.internal.utils.DOMSink

public class TdbWebSession extends TdbSession
Constructs and provides access to a session via XML/HTTP to the TRIP web service.
  • Constructor Details

    • TdbWebSession

      public TdbWebSession(String server, int port) throws TdbException
      Constructor
      Parameters:
      server - The name or IP address of the server to connect to
      port - The port number on which the web service is running
      Throws:
      TdbException
    • TdbWebSession

      public TdbWebSession(String server, int port, String inifile, int timeout) throws TdbException
      Constructor, allows specification of optional server attributes
      Parameters:
      server - The name or IP address of the server to which to connect
      port - The port number of which the web service is running
      inifile - Optional host initialization file to be run by TRIPnet when the web service connects to a TRIP server (null if not set).
      timeout - Optional read timeout to apply to TRIPnet connections constructed by the web service on behalf of the calling user (0 if not set).
      Throws:
      TdbException
  • Method Details

    • getServerName

      public String getServerName()
      The name of the server that the session is connected to. Since this session type connects to a web service running on the same machine as the TRIP server, the name or IP address returned by this method identifies both the web service host and the TRIP host.
      Overrides:
      getServerName in class TdbSession