|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.Uploader
public class Uploader
A client to a Fedora server's upload facility, accessed via a basic-authenticated multipart POST to the server. See server.management.UploadServlet for protocol details.
| Constructor Summary | |
|---|---|
Uploader(String host,
int port,
String context,
String user,
String pass)
Construct an uploader to a certain repository as a certain user. |
|
Uploader(String protocol,
String host,
int port,
String context,
String user,
String pass)
Construct an uploader to a certain repository as a certain user. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Test this class by uploading the given file three times. |
String |
upload(File file)
Send a file to the server, getting back the identifier. |
String |
upload(InputStream in)
Send the data from the stream to the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Uploader(String host,
int port,
String context,
String user,
String pass)
throws IOException
IOException
public Uploader(String protocol,
String host,
int port,
String context,
String user,
String pass)
throws IOException
IOException| Method Detail |
|---|
public String upload(InputStream in)
throws IOException
IOException
public String upload(File file)
throws IOException
IOExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||