|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.ReportSocket
public class ReportSocket
This class implements the communication between the client and the engine that created the requested report. The ReportSocket reads parameters from the client and sends them to the engine. The result of the engine is send back to the client
You need this class only if you use your own middle tier and you want control the communication.
Socket socket = serverSocket.accept();
BufferedInputStream inBuf = new BufferedInputStream(socket.getInputStream());
inBuf.mark(1540);
....
verify the request of the client
....
inBuf.reset();
ReportSocket reportSocket = new ReportSocket(socket);
reportSocket.setPropertiesChecker(yourPropertiesChecker);
reportSocket.setInputStream(inBuf);
reportSocket.execute();
Listener| Constructor Summary | |
|---|---|
ReportSocket(java.net.Socket s)
Construct a new report-socket based on socket s. |
|
| Method Summary | |
|---|---|
void |
execute()
This method executes the ReportSocket to get requests from clients. |
void |
setInputStream(java.io.InputStream i)
With this method you can override the ReportSocket's InputStream. |
void |
setOutputStream(java.io.OutputStream o)
With this method you can override the ReportSocket's OutputStream. |
void |
setPropertiesChecker(PropertiesChecker c)
With this method you can set the methods to check HTML and REPORT properties. |
| Constructor Detail |
|---|
public ReportSocket(java.net.Socket s)
s - The socket you've received via an accept call for example| Method Detail |
|---|
public void execute()
public void setInputStream(java.io.InputStream i)
i - The input stream that this ReportSocket should use instead of its own input stream.public void setOutputStream(java.io.OutputStream o)
o - The output stream that this ReportSocket should use instead of its own output stream.public void setPropertiesChecker(PropertiesChecker c)
c - The class that implements PropertiesChecker.
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||