Four Js Genero Report Writer
FourJs.Report.Runtime.RemoteConnection Class Reference

Class for configuring a connection to a remote GRE server. More...

Inheritance diagram for FourJs.Report.Runtime.RemoteConnection:
FourJs.Report.Runtime.DataConsumer

Public Member Functions

 RemoteConnection (DataConsumer consumer)
 Creates a RemoteConnection object that outputs to the given consumer object. More...
 
void runFromXML (String fileName)
 Streams the specified file thru the rendering pipe. More...
 
void runFromSerializable (Object data)
 Streams the data thru the rendering pipe. More...
 
XmlWriter createXmlWriter ()
 Creates an XmlWriter into which the input document can be streamed thru the rendering pipe. The XmlWriter can be used for one stream only.
 

Static Public Attributes

static String legalCopyright = Version.CLASS_COPYRIGHT
 

Properties

DataConsumer consumer [get, set]
 Sets the DataConsumer that receives the output. More...
 
String host [get, set]
 Sets the host name of the remote GRE server. More...
 
int port [get, set]
 Sets the port of the remote GRE server. The value is expected to be a unsigned 16 bit value. More...
 
String fglDir [get, set]
 Sets the value of the FGLDIR property on the remote server. More...
 
String fglProfile [get, set]
 Sets the value of the FGLPROFILE property on the remote server. The value is used for FGL compatible localization to locate the translation files. More...
 
String fglResourcePath [get, set]
 Sets the value of the FGLRESOURCEPATH property on the remote server. The value is used in the FourRpProcessor for finding report template files that are specified with a relative path (See {link FourRpProcessor::setReportFile}). More...
 
- Properties inherited from FourJs.Report.Runtime.DataConsumer
int debugLevel [get, set]
 Sets the debug level as determined by the More...
 

Detailed Description

Class for configuring a connection to a remote GRE server.

Starting the remote server

The remote server application need to be com.fourjs.report.main.GReportWriter is invoked with the -l option.

Logging

Logging events are logged to the file "FourJs.Report.Runtime.log" in the home directory (Directory specified by the system property "user.home"). The logging system is Apache log4j. The logging configuration file can be changed by setting the system property "log4j.configuration".

Constructor & Destructor Documentation

FourJs.Report.Runtime.RemoteConnection.RemoteConnection ( DataConsumer  consumer)

Creates a RemoteConnection object that outputs to the given consumer object.

Parameters
consumerA DataConsumer

Member Function Documentation

void FourJs.Report.Runtime.RemoteConnection.runFromSerializable ( Object  data)

Streams the data thru the rendering pipe.

Implements FourJs.Report.Runtime.DataConsumer.

void FourJs.Report.Runtime.RemoteConnection.runFromXML ( String  fileName)

Streams the specified file thru the rendering pipe.

Parameters
fileNameThe XML input document

Implements FourJs.Report.Runtime.DataConsumer.

Property Documentation

DataConsumer FourJs.Report.Runtime.RemoteConnection.consumer
getset

Sets the DataConsumer that receives the output.

String FourJs.Report.Runtime.RemoteConnection.fglDir
getset

Sets the value of the FGLDIR property on the remote server.

String FourJs.Report.Runtime.RemoteConnection.fglProfile
getset

Sets the value of the FGLPROFILE property on the remote server. The value is used for FGL compatible localization to locate the translation files.

String FourJs.Report.Runtime.RemoteConnection.fglResourcePath
getset

Sets the value of the FGLRESOURCEPATH property on the remote server. The value is used in the FourRpProcessor for finding report template files that are specified with a relative path (See {link FourRpProcessor::setReportFile}).

String FourJs.Report.Runtime.RemoteConnection.host
getset

Sets the host name of the remote GRE server.

port

int FourJs.Report.Runtime.RemoteConnection.port
getset

Sets the port of the remote GRE server. The value is expected to be a unsigned 16 bit value.

Exceptions
ArgumentOutOfRangeExceptionif the port isn't an unsigned 16 bit value.

host