|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.w3c.jwput.JW
|
+--org.w3c.jwput.JWPut
Put files on the web
| Fields inherited from class org.w3c.jwput.JW |
aborted, BANNER, DEFAULT_MIME, done, etagsDB, in, jwprops, listeners, manager, password, ppassword, prompt, puser, quiet, request, ui, uriInfos, user, USER_AGENT, verbose, VERSION, WINIE_DOC_URL, WINIE_LATEST_ZIP, WINIE_URL |
| Fields inherited from interface org.w3c.jwput.JWOptions |
ACCEPT_LANGUAGE_P, BACKUP_P, DEF_TRIES, ETAGS_DB, FALSE_P, HEADER_PREFIX, HIDE_POPUPS_P, HOMEDIR_P, LOAD_DIR_P, MIME_PREFIX, MIMEDEF_P, OVERWRITE_P, PASSWORD_P, PROGRESS_BAR_P, PROMPT_P, PROXY_HOST_P, PROXY_PORT_P, PROXY_SET_P, PUT_CVS_P, QUIET_P, REC_P, SAVE_DIR_P, SOCKS_HOST_P, SOCKS_PORT_P, TRIES_P, TRUE_P, USER_AGENT_P, USER_P, VERBOSE_P, WPUTDIR, WPUTRC |
| Constructor Summary | |
JWPut(JWUI ui)
Constructor |
|
JWPut(JWUI ui,
java.util.Properties props)
Constructor |
|
JWPut(JWUI ui,
java.util.Properties props,
boolean loadpref)
Constructor |
|
JWPut(java.lang.String mime,
JWUI ui,
java.util.Properties userprops)
Constructor. |
|
JWPut(java.lang.String mime,
JWUI ui,
java.util.Properties userprops,
boolean loadpref)
Constructor. |
|
JWPut(java.lang.String mime,
java.util.Properties userprops)
Constructor. |
|
| Method Summary | |
void |
abort()
|
static void |
badArgs(java.lang.String msg)
Display the message for bad command line error. |
org.w3c.www.protocol.http.Request |
createRequest()
Create a HTTP/1.1 request |
void |
delete(java.lang.String url)
Perform a DELETE |
java.lang.String |
getMimeType(java.lang.String name)
Guess a mime type for the given file. |
java.lang.String |
getMimeType(java.lang.String name,
boolean prompt)
Guess a mime type for the given file. |
protected void |
initialize(java.util.Properties props)
|
static void |
main(java.lang.String[] args)
Main. |
void |
perform(java.lang.String file,
java.lang.String url)
Perform the put(s) |
org.w3c.www.protocol.http.Reply |
put(java.io.File toput,
java.lang.String puturl,
java.lang.String etag)
Perform a HTTP/1.1 PUT |
org.w3c.www.protocol.http.Reply |
put(java.io.File toput,
java.lang.String puturl,
java.lang.String etag,
java.util.Hashtable headers)
Perform a HTTP/1.1 PUT |
protected void |
putAbortableDir(java.io.File dir,
java.lang.String durl,
java.util.Hashtable headers,
boolean rec)
Put (recursively) the files to the location URL. |
void |
putDir(java.io.File dir,
java.lang.String durl)
Put (recursively) the files to the location URL. |
void |
putDir(java.io.File dir,
java.lang.String durl,
java.util.Hashtable headers,
boolean rec)
Put (recursively) the files to the location URL. |
void |
putFile(java.io.File toput,
java.lang.String furl)
Put the givent file at the given location URL |
void |
putFile(java.io.File toput,
java.lang.String desturl,
java.util.Hashtable headers)
Put the givent file at the given location URL |
java.util.Properties |
registerMimeTypeForFile(java.lang.String file,
java.lang.String mime)
|
void |
updateProperties(java.util.Properties props)
Update the user properties |
static void |
usage()
Display the "Usage" message. |
| Methods inherited from class org.w3c.jwput.JW |
addJWListener, check, createRequest, displayErrorMessage, displayErrorMessage, displayMessage, fireDownloadEvent, fireUploadEvent, getETag, getETagsDatabase, getFileName, getManager, getPathConfig, getPort, getPreferences, getPreferencesFile, getProperties, getUserProperties, isAborted, isAbortedOrDone, isDone, notifyProgress, performRequest, performRequest, performRequest, performRequest, removeEtag, removeJWListener, saveEtag, savePreferences, setAborted, setDone, skipBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JWPut(JWUI ui)
ui - the User Interface
public JWPut(JWUI ui,
java.util.Properties props)
ui - the User Interfaceprops - the User properties
public JWPut(JWUI ui,
java.util.Properties props,
boolean loadpref)
ui - the User Interfaceprops - the User propertiesloadpref - do we need to load preferences from disk?
public JWPut(java.lang.String mime,
java.util.Properties userprops)
file - The file (or directory) to putmime - The mime typeurl - The destination URLui - The User Interfaceuserprops - User properties
public JWPut(java.lang.String mime,
JWUI ui,
java.util.Properties userprops)
file - The file (or directory) to putmime - The mime typeurl - The destination URLuserprops - User properties
public JWPut(java.lang.String mime,
JWUI ui,
java.util.Properties userprops,
boolean loadpref)
file - The file (or directory) to putmime - The mime typeurl - The destination URLuserprops - User propertiesloadpref - do we need to load preferences from disk?| Method Detail |
public org.w3c.www.protocol.http.Request createRequest()
public java.util.Properties registerMimeTypeForFile(java.lang.String file,
java.lang.String mime)
public java.lang.String getMimeType(java.lang.String name)
throws PutAbortedException
name - the file name
public java.lang.String getMimeType(java.lang.String name,
boolean prompt)
throws PutAbortedException
name - the file nameprompt - should we prompt the user for a mime type if we can't
guess it?
public org.w3c.www.protocol.http.Reply put(java.io.File toput,
java.lang.String puturl,
java.lang.String etag)
throws java.io.FileNotFoundException,
PutAbortedException
toput - The file to uploadputurl - the location urluser - auth: usernamepassword - auth: passwordjava.io.FileNotFoundException - if toput is not found
public org.w3c.www.protocol.http.Reply put(java.io.File toput,
java.lang.String puturl,
java.lang.String etag,
java.util.Hashtable headers)
throws java.io.FileNotFoundException,
PutAbortedException
toput - The file to uploadputurl - the location urluser - auth: usernamepassword - auth: passwordjava.io.FileNotFoundException - if toput is not found
public void perform(java.lang.String file,
java.lang.String url)
throws java.io.FileNotFoundException
java.io.FileNotFoundException - if a file is not foundpublic void delete(java.lang.String url)
public void putDir(java.io.File dir,
java.lang.String durl)
throws java.io.FileNotFoundException
dir - the directorydurl - the location URL
public void putDir(java.io.File dir,
java.lang.String durl,
java.util.Hashtable headers,
boolean rec)
throws java.io.FileNotFoundException
dir - the directorydurl - the location URLheaders - User headers
protected void putAbortableDir(java.io.File dir,
java.lang.String durl,
java.util.Hashtable headers,
boolean rec)
throws java.io.FileNotFoundException,
PutAbortedException
dir - the directorydurl - the location URLheaders - User headers
public void putFile(java.io.File toput,
java.lang.String furl)
throws java.io.FileNotFoundException
toput - the file to uploadfurl - the url
public void putFile(java.io.File toput,
java.lang.String desturl,
java.util.Hashtable headers)
throws java.io.FileNotFoundException
toput - the file to uploadfurl - the urlheaders - User headerspublic void abort()
abort in class JWpublic void updateProperties(java.util.Properties props)
JWupdateProperties in class JWorg.w3c.jwput.JWprops - the new propertiesprotected void initialize(java.util.Properties props)
initialize in class JWpublic static void usage()
public static void badArgs(java.lang.String msg)
msg - a message.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||