|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.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(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass)
Construct an uploader to a certain repository as a certain user. |
|
Uploader(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass)
Construct an uploader to a certain repository as a certain user. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Test this class by uploading the given file three times. |
java.lang.String |
upload(java.io.File file)
Send a file to the server, getting back the identifier. |
java.lang.String |
upload(java.io.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(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass)
throws java.io.IOException
java.io.IOException
public Uploader(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String upload(java.io.InputStream in)
throws java.io.IOException
java.io.IOException
public java.lang.String upload(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||