javax.rad.remote
Class SubConnection

java.lang.Object
  extended by javax.rad.remote.AbstractConnection
      extended by javax.rad.remote.SubConnection
All Implemented Interfaces:
ICloseable

public class SubConnection
extends AbstractConnection

The SubConnection uses the connection of a MasterConnection for transfering data to the server. It has no alive check.

See Also:
IConnection

Field Summary
 
Fields inherited from class javax.rad.remote.AbstractConnection
coninf, connection
 
Method Summary
protected  void close(boolean pDoCall)
          Close the connection, with or without remote call.
 MasterConnection getMasterConnection()
          Returns the master connection.
protected  UIInvoker getUIInvoker()
          Gets the UI invoker.
 boolean isOpen()
          Checks if the connection is open.
 void open()
          Opens the connection.
 
Methods inherited from class javax.rad.remote.AbstractConnection
addConnectionListener, call, call, call, call, call, call, call, callAction, callAction, callAction, callAction, callAction, callAction, callAction, close, createConnectionProperties, finalize, fireCall, fireCallAction, fireCallError, fireClose, fireOpen, fireReOpen, getApplicationName, getConnection, getConnectionId, getConnectionListener, getLifeCycleName, getPassword, getProperties, getProperty, getTimeout, getUserName, handleCallError, isTimeoutEnabled, logCommunication, removeConnectionListener, reopen, setApplicationName, setConnection, setLifeCycleName, setPassword, setProperty, setTimeout, setTimeoutEnabled, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public void open()
          throws Throwable
Opens the connection.

Specified by:
open in class AbstractConnection
Throws:
Throwable - if the connection can not be or is already opened

getUIInvoker

protected UIInvoker getUIInvoker()
Gets the UI invoker.

Specified by:
getUIInvoker in class AbstractConnection
Returns:
the UI invoker
See Also:
UIInvoker

isOpen

public boolean isOpen()
Checks if the connection is open.

Overrides:
isOpen in class AbstractConnection
Returns:
true if the connection is open, otherwise false

close

protected void close(boolean pDoCall)
              throws Throwable
Close the connection, with or without remote call.

Overrides:
close in class AbstractConnection
Parameters:
pDoCall - true to send close to the server, false to close internal without remote communication (client-side close)
Throws:
Throwable - if it is not possible to close the connection

getMasterConnection

public MasterConnection getMasterConnection()
Returns the master connection.

Returns:
the master connection


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.