com.mobileapps.pcre
Class PCREAppletClient

java.lang.Object
  |
  +--com.mobileapps.pcre.PCREClient
        |
        +--com.mobileapps.pcre.PCREAppletClient

public class PCREAppletClient
extends PCREClient


Fields inherited from class com.mobileapps.pcre.PCREClient
PCRE_FAIL, PCRE_NAME, PCRE_OK
 
Constructor Summary
PCREAppletClient(PCREConsole console, java.applet.Applet applet)
          Construct a PCREAppletClient.
PCREAppletClient(PCREConsole console, java.applet.Applet applet, java.util.Properties props)
          Construct a PCREAppletClient.
PCREAppletClient(PCREConsole console, java.lang.String host, java.applet.Applet applet, java.util.Properties props)
          Construct a PCREAppletClient.
PCREAppletClient(PCREConsole console, java.lang.String host, java.applet.Applet applet, java.util.Properties props, org.omg.CORBA.ORB orb)
          Construct a PCREAppletClient.
PCREAppletClient(PCREConsole console, java.lang.String host, int port, java.applet.Applet applet, java.util.Properties props, org.omg.CORBA.ORB orb)
          Construct a PCREAppletClient.
 
Method Summary
 void Connect()
          Connect the client to the Report Server.
 void Disconnect()
          Disconnect client from all Report Server services.
 void Quit()
          Short-hand for Quit(PCREClient.PCRE_OK).
 void Quit(int code)
          Disconnect client and release server resources.
 void ResetReportServer(PCREReportServerInfo info)
          Reset the PCREGateway, PCREServer and PCREConfigServer host name as well as the PCREGateway name with the help of PCREReportServerInfo data.
 
Methods inherited from class com.mobileapps.pcre.PCREClient
Connect, Connected, DisableScripting, EnableScripting, GetAPI, getApplet, getAppletHost, getConfigServer, getConsole, getCustomServer, getDefaultConsole, getGateway, getHost, getName, getORB, GetPrinterInfo, GetPrinterNames, getServer, GetService, getThreadConsole, InvokeScript, isAppletClient, OpenEngine, OpenEngine, PutAPI, PutService, RemoveAPI, RemoveService, SelectReportServer, setConfigServer, setCustomServer, setDefaultConsole, setGatewayServer, setName, setReportEngineServer, setThreadConsole, Terminate, Terminate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCREAppletClient

public PCREAppletClient(PCREConsole console,
                        java.applet.Applet applet)
                 throws PCREClientError
Construct a PCREAppletClient. The constructor specifies a PCRE gateway on the applet's host, and a PCRE server with default name.
Parameters:
console - The application console class.
applet - The applet conaining the client.

PCREAppletClient

public PCREAppletClient(PCREConsole console,
                        java.applet.Applet applet,
                        java.util.Properties props)
                 throws PCREClientError
Construct a PCREAppletClient. The applet will connect to a PCRE Gateway on the applet's host, and request a PCRE server from the Gateway.
Parameters:
console - The application console class.
applet - The applet containing the client.
props - The property array.

PCREAppletClient

public PCREAppletClient(PCREConsole console,
                        java.lang.String host,
                        int port,
                        java.applet.Applet applet,
                        java.util.Properties props,
                        org.omg.CORBA.ORB orb)
                 throws PCREClientError
Construct a PCREAppletClient. The applet will connect to a PCRE Gateway on the specified host, and request a PCRE server from the Gateway. If host is null or an empty string, the applet will connect to a Gateway on an available but indeterminate host.
Parameters:
console - The applet console class.
host - The client connection host.
port - The port for obtaining the initial reference.
applet - The applet containing the client.
props - The property array.
orb - The client orb.

PCREAppletClient

public PCREAppletClient(PCREConsole console,
                        java.lang.String host,
                        java.applet.Applet applet,
                        java.util.Properties props)
                 throws PCREClientError
Construct a PCREAppletClient. The applet will connect to a PCRE Gateway on the specified host, and request a PCRE server from the Gateway. If host is null or an empty string, the applet will connect to a Gateway on an available but indeterminate host.
Parameters:
console - The applet console class.
host - The client connection host.
applet - The applet containing the client.
props - The property array.

PCREAppletClient

public PCREAppletClient(PCREConsole console,
                        java.lang.String host,
                        java.applet.Applet applet,
                        java.util.Properties props,
                        org.omg.CORBA.ORB orb)
                 throws PCREClientError
Construct a PCREAppletClient. The applet will connect to a PCRE Gateway on the specified host, and request a PCRE server from the Gateway. If host is null or an empty string, the applet will connect to a Gateway on an available but indeterminate host.
Parameters:
console - The applet console class.
host - The client connection host.
applet - The applet containing the client.
props - The property array.
orb - The client orb.
Method Detail

Connect

public void Connect()
             throws PCREError,
                    GatewayShuttingDown
Connect the client to the Report Server.
Throws:
PCREError - Is thrown on error.
Overrides:
Connect in class PCREClient

Disconnect

public void Disconnect()
                throws PCREError
Disconnect client from all Report Server services.
Throws:
PCREError - is thrown on error.
Overrides:
Disconnect in class PCREClient

Quit

public void Quit()
Short-hand for Quit(PCREClient.PCRE_OK).
Overrides:
Quit in class PCREClient

Quit

public void Quit(int code)
Disconnect client and release server resources.
Parameters:
code - The termination code.
Overrides:
Quit in class PCREClient

ResetReportServer

public void ResetReportServer(PCREReportServerInfo info)
                       throws PCREClientError
Reset the PCREGateway, PCREServer and PCREConfigServer host name as well as the PCREGateway name with the help of PCREReportServerInfo data.
Parameters:
rsinfo - A PCREReportServerInfo containing the new PCREGateway host and name.
Overrides:
ResetReportServer in class PCREClient