|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.io.TransferContext
public class TransferContext
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 |
---|
public TransferContext(ConnectionInfo pInfo, IDownloadExecutor pDownload, IUploadExecutor pUpload)
TransferContext
.
pInfo
- the connection infopDownload
- the download executorpUpload
- the upload executorMethod Detail |
---|
public ConnectionInfo getConnectionInfo()
null
if info isn't availablepublic IDownloadExecutor getDownloadExecutor()
null
if not availablepublic IUploadExecutor getUploadExecutor()
null
if not availablepublic static IDownloadExecutor getCurrentDownloadExecutor()
null
if not availablepublic static IUploadExecutor getCurrentUploadExecutor()
null
if not availablepublic static ConnectionInfo getCurrentConnectionInfo()
null
if not availablepublic static TransferContext getCurrentInstance()
TransferContext
.
protected void setInstance(TransferContext pContext)
pContext
- the context instancepublic final void release()
TransferContext
instance.
isReleased()
public boolean isReleased()
TransferContext
.
true
if there is no current instance of TransferContext
(means
that the TransferContext
is released); otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |