public class RemoteConnection extends java.lang.Object implements DataConsumer, java.io.Serializable
GReportWriter
is invoked with the -l option.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Modifier | Constructor and Description |
---|---|
protected |
RemoteConnection()
Creates a RemoteConnection object.
|
|
RemoteConnection(DataConsumer consumer)
Creates a RemoteConnection object that outputs to the given
consumer object.
|
Modifier and Type | Method and Description |
---|---|
GreContentHandler |
createContentHandler()
Creates a content handler into which the input document can be
streamed thru the rendering pipe.
|
void |
runFromJAXBObject(java.lang.Object data)
Uses
JAXB to stream the object
data thru the rendering pipe. |
void |
runFromXML(java.lang.String fileName)
Streams the specified file thru the rendering pipe.
|
void |
setConsumer(DataConsumer consumer)
Sets the DataConsumer that receives the output.
|
void |
setFGLDIR(java.lang.String fGLDIR)
Sets the value of the FGLDIR property on the remote server.
|
void |
setFGLPROFILE(java.lang.String fGLPROFILE) |
void |
setFGLRESOURCEPATH(java.lang.String fGLRESOURCEPATH)
Sets the value of the FGLRESOURCEPATH property on the remote server.
|
void |
setHost(java.lang.String hostName)
Sets the host name of the remote GRE server.
|
void |
setPort(java.lang.Integer port) |
public static final java.lang.String legalCopyright
protected RemoteConnection()
public RemoteConnection(DataConsumer consumer)
consumer
- A DataConsumerpublic void setConsumer(DataConsumer consumer)
consumer
- A DataConsumerpublic void setHost(java.lang.String hostName)
hostName
- the host name of the remote serversetPort(Integer port)
public void setPort(java.lang.Integer port)
public void setFGLDIR(java.lang.String fGLDIR)
fGLDIR
- the value of the FGLDIR propertypublic void setFGLPROFILE(java.lang.String fGLPROFILE)
public void setFGLRESOURCEPATH(java.lang.String fGLRESOURCEPATH)
FourRpProcessor
for finding report template files
that are specified with a relative path (See {link FourRpProcessor#setReportFile}).fGLRESOURCEPATH
- the value of the RESOURCEPATH propertypublic GreContentHandler createContentHandler() throws org.xml.sax.SAXException
createContentHandler
in interface DataConsumer
org.xml.sax.SAXException
public void runFromJAXBObject(java.lang.Object data) throws javax.xml.bind.JAXBException, org.xml.sax.SAXException
JAXB
to stream the object
data
thru the rendering pipe.runFromJAXBObject
in interface DataConsumer
data
- A Java object annotated for JAXP processingjavax.xml.bind.JAXBException
org.xml.sax.SAXException
public void runFromXML(java.lang.String fileName) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
runFromXML
in interface DataConsumer
fileName
- The XML input documentorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException