net.jxta.share
Interface SharePolicy
- public interface SharePolicy
- extends net.jxta.service.Service
Field Summary |
static java.lang.String |
documentName
|
static java.lang.String |
name
Policy name by which it will be registered/retrieved |
Methods inherited from interface net.jxta.service.Service |
getAdvertisement,
getInterface |
Methods inherited from interface net.jxta.platform.Application |
init,
startApp,
stopApp |
name
public static final java.lang.String name
- Policy name by which it will be registered/retrieved
documentName
public static final java.lang.String documentName
startPolicy
public void startPolicy(java.io.File groupDir)
throws net.jxta.exception.PeerGroupException
stopPolicy
public void stopPolicy()
getPipePolicy
public net.jxta.pipe.Pipe getPipePolicy()
getPipeAdvertisement
public net.jxta.protocol.PipeAdvertisement getPipeAdvertisement()
handleJxtaMessage
public void handleJxtaMessage(net.jxta.endpoint.Message message)
getList
public ShareStatus getList(net.jxta.protocol.PeerGroupAdvertisement destPeer)
getList
public ShareStatus getList(net.jxta.protocol.PipeAdvertisement destPipe)
getContent
public ShareStatus getContent(net.jxta.protocol.PeerGroupAdvertisement destPeer,
ContentId cid)
getContent
public ShareStatus getContent(net.jxta.protocol.PeerGroupAdvertisement destPeer,
ContentId cid,
java.io.File destFile)
getContent
public ShareStatus getContent(net.jxta.protocol.PipeAdvertisement destPipe,
ContentId cid)
getContent
public ShareStatus getContent(net.jxta.protocol.PipeAdvertisement destPipe,
ContentId cid,
java.io.File destFile)
getContentManager
public ContentManager getContentManager()