|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.distribute.HTTPRemoteFileRegistry
public class HTTPRemoteFileRegistry
The embedded webserver handling remote files for HTTPRemoteFile point-to-point communication. Optimised to use direct transfer on local machine.
Method Summary | |
---|---|
(package private) static java.net.URL |
getCleanupUrl(java.net.URL url)
Get the url for cleaning up after a remote file registered under som URL |
static HTTPRemoteFileRegistry |
getInstance()
Get the unique instance. |
java.net.URL |
registerFile(java.io.File file,
boolean deletable)
Register a file for serving to an endpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HTTPRemoteFileRegistry getInstance()
public java.net.URL registerFile(java.io.File file, boolean deletable)
file
- The file to register.deletable
- Whether it should be deleted on cleanup.
ArgumentNotValid
- on null or unreadable file.
IOFailure
- on any trouble registerring the filestatic java.net.URL getCleanupUrl(java.net.URL url) throws java.net.MalformedURLException
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |