|
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
public abstract class AbstractJRemoteConnection
Abstract interface to a remote jBASE instance.
This abstract connection decouples the JRemoteConnection from the underlying physical connection. It performs services such as authentication in a connection independant way.
Constructor Summary | |
---|---|
AbstractJRemoteConnection()
|
Method Summary | |
---|---|
void |
authenticate(String user,
String password)
Send data for authentication to the server. |
void |
authenticate(String user,
String account,
String password)
Send data for authentication to the server, the server must be configured to authenticate jBASE account connections. |
abstract void |
close()
|
Charset |
getCharset()
|
CharsetDecoder |
getCharsetDecoder()
|
CharsetEncoder |
getCharsetEncoder()
|
abstract Response |
receive()
|
abstract void |
send(JRemoteRequest request)
|
Response |
sendWaitForResponse(JRemoteRequest request)
Convenient method which simply calls #send followed by #receive. |
void |
setCharset(Charset charset)
|
void |
setProperties(Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJRemoteConnection()
Method Detail |
---|
public abstract void send(JRemoteRequest request) throws JRemoteException
JRemoteException
public abstract Response receive() throws JRemoteException
JRemoteException
public abstract void close() throws JRemoteException
JRemoteException
public Response sendWaitForResponse(JRemoteRequest request) throws JRemoteException
request
- a request to the server
JRemoteException
public void authenticate(String user, String password) throws JRemoteException
Send data for authentication to the server. If the authentication fails the server will close the connection.
JRemoteException
public void authenticate(String user, String account, String password) throws JRemoteException
Send data for authentication to the server, the server must be configured to authenticate jBASE account connections. If the authentication fails the server will close the connection.
JRemoteException
public void setProperties(Properties props) throws JRemoteException
JRemoteException
public Charset getCharset()
public CharsetEncoder getCharsetEncoder()
public CharsetDecoder getCharsetDecoder()
public void setCharset(Charset charset)
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |