|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.transfer.AbstractTransfer org.xnap.transfer.AbstractDownload org.xnap.plugin.opennap.net.OpenNapDirectBrowse
public class OpenNapDirectBrowse
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
static int |
REQUEST_TIMEOUT
|
static int |
SOCKET_TIMEOUT
|
Fields inherited from class org.xnap.transfer.AbstractTransfer |
---|
MIN_RECALC_INTERVAL, RECALC_INTERVAL |
Fields inherited from interface org.xnap.transfer.Transfer |
---|
TRANSFER_TIMEOUT |
Constructor Summary | |
---|---|
OpenNapDirectBrowse(OpenNapUser user)
|
Method Summary | |
---|---|
void |
exceptionThrown(java.lang.Exception e)
|
javax.swing.Action[] |
getActions()
Returns additional actions for this search that can be performed besides stop and requery. |
long |
getBytesTransferred()
Returns how many bytes have been transferred since the transfer was started. |
java.io.File |
getFile()
Returns the file the transfer is using. |
java.lang.String |
getFilename()
Returns the filename that should be presented to the user. |
long |
getFilesize()
Returns the final filesize. |
SearchFilter |
getFilter()
Returns null . |
javax.swing.Icon |
getIcon()
Returns null. |
java.lang.String |
getName()
Returns the name of the user that is browsed. |
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
Segment[] |
getSegments()
Returns the segments for segmented downloads. |
java.lang.String |
getStatus()
Returns a string that describes the current status. |
long |
getTotalBytesTransferred()
Returns how many bytes have been transferred. |
boolean |
isDone()
Returns true, if this search is finished and can not be started again. |
boolean |
isFailed()
Returns true, if the browse failed. |
boolean |
isRunning()
Returns true if the transfer is running. |
void |
messageReceived(ServerMessage msg)
Handles messages received from the server as response to the download request. |
boolean |
showTree()
Returns true . |
boolean |
socketReceived(IncomingSocket s)
Invoked when an incoming connect is recognized. |
void |
start(SearchHandler handler)
Starts this search. |
void |
stop()
Cancels this search. |
Methods inherited from class org.xnap.transfer.AbstractDownload |
---|
add, addListListener, clearDone, getChildCount, getChildren, iterator, remove, removeListListener |
Methods inherited from class org.xnap.transfer.AbstractTransfer |
---|
addStateListener, cleared, getAverageRate, getCurrentRate, getDescription, getElapsedTime, getQueuePosition, getRemainingTime, removeStateListener, stateChanged, toString, transferStarted, transferStopped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xnap.transfer.Transfer |
---|
addStateListener, cleared, getAverageRate, getCurrentRate, getDescription, getQueuePosition, getRemainingTime, removeStateListener |
Field Detail |
---|
public static final int REQUEST_TIMEOUT
public static final int SOCKET_TIMEOUT
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public OpenNapDirectBrowse(OpenNapUser user)
Method Detail |
---|
public void exceptionThrown(java.lang.Exception e)
exceptionThrown
in interface ExceptionListener
public java.io.File getFile()
Transfer
getFile
in interface Transfer
public java.lang.String getFilename()
Transfer
getFilename
in interface Transfer
getFilename
in class AbstractTransfer
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
public SearchFilter getFilter()
null
.
getFilter
in interface Search
public java.lang.String getName()
getName
in interface Search
public Plugin getPlugin()
Transfer
getPlugin
in interface Transfer
public javax.swing.Action[] getActions()
Search
getActions
in interface Search
getActions
in interface Transfer
xnap.transfer.Transfer#getActions()
public long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
AbstractTransfer.getCurrentRate()
public javax.swing.Icon getIcon()
AbstractTransfer
getIcon
in interface Transfer
getIcon
in class AbstractTransfer
public Peer getPeer()
Transfer
getPeer
in interface Transfer
xnap.transfer.Transfer#getPeer()
public Segment[] getSegments()
Transfer
getSegments
in interface Transfer
getSegments
in class AbstractTransfer
public java.lang.String getStatus()
Search
getStatus
in interface Search
getStatus
in interface Transfer
xnap.transfer.Transfer#getStatus()
public long getTotalBytesTransferred()
Transfer
getTotalBytesTransferred
in interface Transfer
xnap.transfer.Transfer#getTotalBytesTransferred()
public boolean isDone()
Search
isDone
in interface Search
isDone
in interface Transfer
public boolean isFailed()
OpenNapBrowseInterface
isFailed
in interface OpenNapBrowseInterface
public boolean isRunning()
Transfer
isRunning
in interface Transfer
public void messageReceived(ServerMessage msg)
messageReceived
in interface MessageListener
public boolean showTree()
true
.
showTree
in interface Search
public boolean socketReceived(IncomingSocket s)
SocketListener
socketReceived
in interface SocketListener
public void start(SearchHandler handler)
start
in interface Search
handler
- the object that handles the resultspublic void stop()
stop
in interface Search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |