|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jbase.jremote.io.AbstractJRemoteConnection
com.jbase.jremote.io.InterceptorConnection
public class InterceptorConnection
This class is responsible for handling the message sending to and from an underlying JConnection. It is designed to intercept and handle returned messages that are not of the desired type. e.g. A subroutine call may have IO communication before the return parameters are received.
Constructor Summary | |
---|---|
InterceptorConnection(AbstractJRemoteConnection c,
InputStream is,
OutputStream os)
|
Method Summary | |
---|---|
void |
close()
Close underlying connection. |
Response |
receive()
Intercept any IO messages and handle required input or output on in / out streams. |
void |
send(JRemoteRequest request)
|
void |
setInputStream(InputStream in)
Set the InputStream. |
void |
setOutputStream(OutputStream out)
Set the OutputStream. |
void |
setTerminalOutputWriter(Writer writer)
Set the OutputStream. |
Methods inherited from class com.jbase.jremote.io.AbstractJRemoteConnection |
---|
authenticate, authenticate, getCharset, getCharsetDecoder, getCharsetEncoder, sendWaitForResponse, setCharset, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterceptorConnection(AbstractJRemoteConnection c, InputStream is, OutputStream os)
Method Detail |
---|
public void setOutputStream(OutputStream out)
Set the OutputStream.
out
- Write output received from the connection to this OutputStreampublic void setTerminalOutputWriter(Writer writer)
Set the OutputStream.
writer
- Write output received from the connection to this Writerpublic void setInputStream(InputStream in)
Set the InputStream.
in
- Receive input from the supplied InputStreampublic void close() throws JRemoteException
Close underlying connection.
close
in class AbstractJRemoteConnection
JRemoteException
public void send(JRemoteRequest request) throws JRemoteException
send
in class AbstractJRemoteConnection
JRemoteException
public Response receive() throws JRemoteException
Intercept any IO messages and handle required input or output on in / out streams.
receive
in class AbstractJRemoteConnection
JRemoteException
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |