net.jxta.share
Class GetContentRequest
java.lang.Object
|
+--net.jxta.share.GetContentRequest
- public class GetContentRequest
- extends java.lang.Object
- implements java.lang.Runnable
This class implements Get Content Request.
It request the given content from the given CMS request pipe.
Constructor Summary |
GetContentRequest(net.jxta.peergroup.PeerGroup group,
net.jxta.protocol.PipeAdvertisement inRequest,
net.jxta.share.ContentId inCid,
java.io.File inFile)
|
GetContentRequest(net.jxta.peergroup.PeerGroup group,
net.jxta.protocol.PipeAdvertisement inRequest,
net.jxta.protocol.PipeAdvertisement inResult,
net.jxta.share.ContentId inCid,
java.io.File inFile)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GetContentRequest
public GetContentRequest(net.jxta.peergroup.PeerGroup group,
net.jxta.protocol.PipeAdvertisement inRequest,
net.jxta.share.ContentId inCid,
java.io.File inFile)
throws java.lang.reflect.InvocationTargetException
GetContentRequest
public GetContentRequest(net.jxta.peergroup.PeerGroup group,
net.jxta.protocol.PipeAdvertisement inRequest,
net.jxta.protocol.PipeAdvertisement inResult,
net.jxta.share.ContentId inCid,
java.io.File inFile)
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
cancel
public void cancel()
isDone
public boolean isDone()
hasFailed
public boolean hasFailed()
getPercentDone
public int getPercentDone()
notifyDone
public void notifyDone()
- These notify methods are to be overridden by a subclass that
wants to track the progress of the request
notifyFailure
public void notifyFailure()
notifyUpdate
public void notifyUpdate(int percentage)
getFile
public java.io.File getFile()