|
|||||||||
| 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.JWGet
Get 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 |
| Constructor Summary | |
JWGet(org.w3c.www.protocol.http.HttpManager manager)
Constructor |
|
JWGet(org.w3c.www.protocol.http.HttpManager manager,
JWUI ui)
Constructor |
|
JWGet(JWUI ui,
java.util.Properties userprops)
Constructor |
|
JWGet(JWUI ui,
java.util.Properties userprops,
boolean loadpref)
Constructor |
|
JWGet(java.util.Properties userprops)
Constructor |
|
| Method Summary | |
void |
abort()
|
static void |
badArgs(java.lang.String msg)
Display the message for bad command line error. |
void |
get(java.io.File toget,
java.lang.String furl,
boolean backup)
Get the latest version of the remote file. |
protected java.io.File |
getBackupFile(java.io.File file)
Get the backup file relative to the given file. |
java.io.File |
getFile(java.io.File toget,
java.lang.String furl,
boolean backup)
Get the latest version of the remote file. |
java.io.File |
getFile(java.io.File toget,
java.lang.String furl,
boolean backup,
boolean trace,
org.w3c.www.http.HttpRange range,
java.util.Hashtable headers)
Get the latest version of the remote file. |
java.io.File |
getFile(java.io.File toget,
java.lang.String furl,
boolean backup,
java.util.Hashtable headers)
Get the latest version of the remote file. |
java.io.File |
getFile(java.io.File toget,
java.lang.String furl,
java.util.Hashtable headers)
Get the latest version of the remote file. |
static java.lang.String |
getFileName(java.lang.String url)
|
static java.lang.String |
getIdxFileName(java.lang.String url)
|
protected void |
initialize(java.util.Properties props)
|
static void |
main(java.lang.String[] args)
|
void |
updateProperties(java.util.Properties props)
Update the user properties |
void |
upgradeWinie()
Get the latest Winie distribution URL. |
static void |
usage()
Display the "Usage" message. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public JWGet(org.w3c.www.protocol.http.HttpManager manager)
manager - the HttpManager to use
public JWGet(org.w3c.www.protocol.http.HttpManager manager,
JWUI ui)
manager - the HttpManager to useui - the User Interface to useJWGUI,
JWTUIpublic JWGet(java.util.Properties userprops)
userprops - the Properties to use
public JWGet(JWUI ui,
java.util.Properties userprops)
ui - the User Interface to useuserprops - the Properties to useJWGUI,
JWTUI
public JWGet(JWUI ui,
java.util.Properties userprops,
boolean loadpref)
ui - the User Interface to useloadpref - do we need to load preferences from disk?userprops - the Properties to useJWGUI,
JWTUI| Method Detail |
protected java.io.File getBackupFile(java.io.File file)
the - file to backup
public void get(java.io.File toget,
java.lang.String furl,
boolean backup)
throws java.io.IOException
toget - the file to updatefurl - the URLbackup - if true the local file will be backuped
public java.io.File getFile(java.io.File toget,
java.lang.String furl,
boolean backup)
throws java.io.IOException
toget - the file to updatefurl - the URLbackup - if true the local file will be backuped
public java.io.File getFile(java.io.File toget,
java.lang.String furl,
java.util.Hashtable headers)
throws java.io.IOException
toget - the file to updatefurl - the URL
public java.io.File getFile(java.io.File toget,
java.lang.String furl,
boolean backup,
java.util.Hashtable headers)
throws java.io.IOException
toget - the file to updatefurl - the URLbackup - if true the local file will be backuped
public java.io.File getFile(java.io.File toget,
java.lang.String furl,
boolean backup,
boolean trace,
org.w3c.www.http.HttpRange range,
java.util.Hashtable headers)
throws java.io.IOException
toget - the file to updatefurl - the URLbackup - if true the local file will be backupedtrace - should we display trace?range - the HttpRange to requestpublic void abort()
public void updateProperties(java.util.Properties props)
props - the new peopertiesprotected void initialize(java.util.Properties props)
public static void usage()
public static void badArgs(java.lang.String msg)
msg - a message.public static java.lang.String getIdxFileName(java.lang.String url)
public static java.lang.String getFileName(java.lang.String url)
public void upgradeWinie()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||