javax.rad.io
Class TransferContext

java.lang.Object
  extended by javax.rad.io.TransferContext

public class TransferContext
extends java.lang.Object

The ServerContextImpl is an internal ServerContext implementation.


Constructor Summary
TransferContext(ConnectionInfo pInfo, IDownloadExecutor pDownload, IUploadExecutor pUpload)
          Creates a new instance of TransferContext.
 
Method Summary
 ConnectionInfo getConnectionInfo()
          Gets the connection info.
static ConnectionInfo getCurrentConnectionInfo()
          Gets the current connection info.
static IDownloadExecutor getCurrentDownloadExecutor()
          Gets the current download executor.
static TransferContext getCurrentInstance()
          Gets the current instance of TransferContext.
static IUploadExecutor getCurrentUploadExecutor()
          Gets the current upload executor.
 IDownloadExecutor getDownloadExecutor()
          Gets the download executor.
 IUploadExecutor getUploadExecutor()
          Gets the upload executor.
 boolean isReleased()
          Gets the release state of this TransferContext.
 void release()
          Release any resources associated with this TransferContext instance.
protected  void setInstance(TransferContext pContext)
          Sets the current context instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferContext

public TransferContext(ConnectionInfo pInfo,
                       IDownloadExecutor pDownload,
                       IUploadExecutor pUpload)
Creates a new instance of TransferContext.

Parameters:
pInfo - the connection info
pDownload - the download executor
pUpload - the upload executor
Method Detail

getConnectionInfo

public ConnectionInfo getConnectionInfo()
Gets the connection info.

Returns:
the connection info or null if info isn't available

getDownloadExecutor

public IDownloadExecutor getDownloadExecutor()
Gets the download executor.

Returns:
the executor or null if not available

getUploadExecutor

public IUploadExecutor getUploadExecutor()
Gets the upload executor.

Returns:
the executor or null if not available

getCurrentDownloadExecutor

public static IDownloadExecutor getCurrentDownloadExecutor()
Gets the current download executor.

Returns:
the executor or null if not available

getCurrentUploadExecutor

public static IUploadExecutor getCurrentUploadExecutor()
Gets the current upload executor.

Returns:
the executor or null if not available

getCurrentConnectionInfo

public static ConnectionInfo getCurrentConnectionInfo()
Gets the current connection info.

Returns:
the connection info or null if not available

getCurrentInstance

public static TransferContext getCurrentInstance()
Gets the current instance of TransferContext.

Returns:
the current instance

setInstance

protected void setInstance(TransferContext pContext)
Sets the current context instance.

Parameters:
pContext - the context instance

release

public final void release()
Release any resources associated with this TransferContext instance.

See Also:
isReleased()

isReleased

public boolean isReleased()
Gets the release state of this TransferContext.

Returns:
true if there is no current instance of TransferContext (means that the TransferContext is released); otherwise false


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.