|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dynalivery.pcre.PCREClient
| Field Summary | |
static int |
PCRE_FAIL
Failure return code. |
static java.lang.String |
PCRE_NAME
The default PCRE name |
static int |
PCRE_OK
Successful return code. |
int |
priority
priority variable |
static int |
PRIORITY_HIGH
HIGH PRIORITY variable |
static int |
PRIORITY_LOW
LOW PRIORITY variable |
static int |
PRIORITY_MEDIUM
MEDIUM PRIORITY variable |
| Constructor Summary | |
PCREClient(PCREConsole console,
java.lang.String host,
int port,
java.applet.Applet applet,
java.util.Properties props,
org.omg.CORBA.ORB cltOrb)
Construct a PCRE client context for Java applets with the given applet, console and property array. |
|
PCREClient(PCREConsole console,
java.lang.String host,
int port,
java.lang.String[] args,
java.util.Properties props,
org.omg.CORBA.ORB cltOrb)
Construct a PCRE client context for Java applications with given console, command-line arguments and property-array. |
|
| Method Summary | |
void |
Connect()
Connect client to selected PCRE services. |
void |
Connect(boolean useLoadBalancer)
Connect client to selected PCRE services. |
boolean |
Connected(java.lang.String name)
Is the Client is connected to named service. |
void |
DisableScripting()
Disable event-driven scripting for this client. |
void |
Disconnect()
Disconnect client from all PCRE services. |
void |
EnableScripting()
Enable event-driven scripting for this client. |
java.lang.Object |
GetAPI(java.lang.String name)
Get an API object from the registry. |
java.applet.Applet |
getApplet()
Return the applet hosting the client. |
java.lang.String |
getAppletHost()
If the client is running as an applet, return the host-name of the applet's code-base. |
boolean |
getArchiveFileReturnOption()
Getter method for zipFlag member. |
PCREConfigServer |
getConfigServer()
Returns the config server object associated with this client. |
static PCREConsole |
getConsole()
Return the client's console. |
PCRECustomServer |
getCustomServer()
Returns the custom server object associated with this client. |
static PCREConsole |
getDefaultConsole()
Return the default console for the client. |
boolean |
getDisableServerTimeout()
Getter method for disableServerTimeout flag. |
PCREGateway |
getGateway()
Returns the gateway server object associated with this client. |
static java.lang.String |
getHost()
Return the PCRE client's host IP-address. |
java.lang.String |
getName()
Return the client's name. |
org.omg.CORBA.ORB |
getORB()
Return the client orb. |
java.lang.String[] |
GetPrinterInfo(java.lang.String printerName,
java.lang.StringBuffer driverName,
PCREDEVMODE devMode)
This method returns the printer Info given the Printer Name |
java.lang.String[] |
GetPrinterNames()
This method returns the names of the printers attached to the report server |
int |
getPriority()
Getter method for priority member. |
PCREServer |
getServer()
Returns the pcreserver object associated with this client. |
PCREService |
GetService(java.lang.String name)
Get a service from the client's registry. |
static org.omg.CORBA.ORB |
getSharedORB()
Get the shared ORB instance. |
static PCREConsole |
getThreadConsole()
Return the console for the current thread. |
void |
InvokeScript(PCREScripting script,
java.awt.Event evt,
java.lang.Object arg)
Schedule a script triggered by the AWT event. |
boolean |
isAppletClient()
Is the client is invoked in an applet? |
PCREEngine |
OpenEngine()
Acquire a print-engine for this client. |
PCREEngine |
OpenEngine(boolean open)
Acquire and optionally open a print-engine for this client. |
void |
PutAPI(java.lang.String name,
java.lang.Object api)
Put an API object into the registry. |
void |
PutService(PCREService service)
Enter a PCRE service in the client's registry. |
void |
Quit()
Short-hand for Quit(PCREClient.PCRE_OK). |
void |
Quit(int code)
Disconnect client from all PCRE services. |
void |
RemoveAPI(java.lang.String name)
Remove an API object from the registry. |
void |
RemoveService(java.lang.String name)
Remove a service from the client's registry. |
void |
ResetReportServer(PCREReportServerInfo rsinfo)
|
void |
SelectReportServer(java.lang.String method)
Use the Load balancer to select a Gateway by the given method. |
void |
setArchiveFileReturnOption(boolean zipOption)
Setter method for zipFlag member. |
void |
setConfigServer(PCREConfigServer newConfigServer)
Sets the config server object associated with this client. |
void |
setCustomServer(PCRECustomServer newCustomServer)
Sets the custom server object associated with this client. |
static void |
setDefaultConsole(PCREConsole console)
Set the default console for the client. |
void |
setDisableServerTimeout(boolean timeoutFlag)
Setter method for disableServerTimeout flag. |
void |
setGatewayServer(PCREGateway newGatewayServer)
Sets the gateway server object associated with this client. |
void |
setName(java.lang.String name)
Set the client's name. |
void |
setPriority(int clientPriority)
Setter method for priority member. |
void |
setReportEngineServer(PCREServer newReportEngineServer)
Sets the pcreserver object associated with this client. |
static void |
setSharedORB(org.omg.CORBA.ORB theSharedORB)
Set the shared ORB instance. |
static void |
setThreadConsole(PCREConsole console)
Set the console for the current thread. |
static void |
Terminate()
Short-hand for Terminate(PCRE_FAIL); |
static void |
Terminate(int code)
Terminate the client application. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int PCRE_OK
public static final int PCRE_FAIL
public static final java.lang.String PCRE_NAME
public static final int PRIORITY_HIGH
public static final int PRIORITY_MEDIUM
public static final int PRIORITY_LOW
public int priority
| Constructor Detail |
public PCREClient(PCREConsole console,
java.lang.String host,
int port,
java.lang.String[] args,
java.util.Properties props,
org.omg.CORBA.ORB cltOrb)
throws PCREClientError
console - The application console.args - The command-line arguments.props - The properties array.
public PCREClient(PCREConsole console,
java.lang.String host,
int port,
java.applet.Applet applet,
java.util.Properties props,
org.omg.CORBA.ORB cltOrb)
throws PCREClientError
console - The applet console.applet - The applet.props - The properties array.| Method Detail |
public void Connect()
throws PCREError,
GatewayShuttingDown
public void Connect(boolean useLoadBalancer)
throws PCREError,
GatewayShuttingDown
useLoadBalancer - Boolean value used to connect a report server via a load balancer.public boolean Connected(java.lang.String name)
name - The name of the service to test for.public void DisableScripting()
public void Disconnect()
throws PCREError
public void EnableScripting()
public java.lang.Object GetAPI(java.lang.String name)
name - The name of the object to be retrieved.public java.applet.Applet getApplet()
public java.lang.String getAppletHost()
public PCREConfigServer getConfigServer()
public static PCREConsole getConsole()
public PCRECustomServer getCustomServer()
public static PCREConsole getDefaultConsole()
public PCREGateway getGateway()
public static java.lang.String getHost()
public java.lang.String getName()
public org.omg.CORBA.ORB getORB()
public java.lang.String[] GetPrinterInfo(java.lang.String printerName,
java.lang.StringBuffer driverName,
PCREDEVMODE devMode)
throws PCREAPIError,
PCREServerError
printerName, - Name of the Printer as StringdriverName, - Holds the Driver Name of the Printer Name given as inputpcreMode, - Holds the PCREDEVMODE of this Printer
public java.lang.String[] GetPrinterNames()
throws PCREAPIError,
PCREServerError
public PCREServer getServer()
public PCREService GetService(java.lang.String name)
name - The name of the service requested.public static PCREConsole getThreadConsole()
public void InvokeScript(PCREScripting script,
java.awt.Event evt,
java.lang.Object arg)
public boolean isAppletClient()
public PCREEngine OpenEngine()
throws PCREError
public PCREEngine OpenEngine(boolean open)
throws PCREError
open - If true, open the print-engine on the server.
public void PutAPI(java.lang.String name,
java.lang.Object api)
name - The name of the API object.api - The API object to be entered.public void PutService(PCREService service)
service - The service that is going to be used.public void Quit()
public void Quit(int code)
code - The termination code.public void RemoveAPI(java.lang.String name)
name - The name of the API object to be removed.public void RemoveService(java.lang.String name)
name - The name of the service to remove.
public void ResetReportServer(PCREReportServerInfo rsinfo)
throws PCREClientError,
PCREServerError
public void SelectReportServer(java.lang.String method)
throws PCREClientError,
PCREServerError
public void setConfigServer(PCREConfigServer newConfigServer)
newConfigServer - com.dynalivery.pcre.PCREConfigServerpublic void setCustomServer(PCRECustomServer newCustomServer)
newCustomServer - com.dynalivery.pcre.PCRECustomServerpublic static void setDefaultConsole(PCREConsole console)
console - The new console for this client.public void setGatewayServer(PCREGateway newGatewayServer)
newGatewayServer - com.dynalivery.pcre.PCREGatewaypublic void setName(java.lang.String name)
name - The new name for this client.public void setReportEngineServer(PCREServer newReportEngineServer)
newReportEngineServer - com.dynalivery.pcre.PCREServerpublic static void setThreadConsole(PCREConsole console)
console - The new console to associate with this thread.public static void Terminate()
public static void Terminate(int code)
code - The termination code.public void setPriority(int clientPriority)
clientPriority - static integer variablepublic int getPriority()
public void setArchiveFileReturnOption(boolean zipOption)
zipOption - booleanpublic boolean getArchiveFileReturnOption()
public void setDisableServerTimeout(boolean timeoutFlag)
disableServerTimeout - booleanpublic boolean getDisableServerTimeout()
public static org.omg.CORBA.ORB getSharedORB()
public static void setSharedORB(org.omg.CORBA.ORB theSharedORB)
org.omg.CORBA.ORB -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||