|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.net.ConnectionAdapter
public class ConnectionAdapter
Adapter class to make it easier to use ParsedURL.connect(). The only method that you need to implement is parseFilesWithSuffix(String suffix).
| Constructor Summary | |
|---|---|
ConnectionAdapter()
|
|
| Method Summary | |
|---|---|
void |
badResult()
Called at the end of processing, if it turns out that something went wrong while opening the connection. |
void |
displayStatus(java.lang.String message)
Used to provid status feedback to the user. |
void |
handleFileDirectory(java.io.File file)
When this method is called, you know the file is a directory. |
boolean |
parseFilesWithSuffix(java.lang.String suffix)
Tells the connect() method that it should go ahead and create a PURLConnection for all files that it finds. |
boolean |
processRedirect(java.net.URL connectionURL)
Shuffle referential models when a redirect is observed, if you like. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionAdapter()
| Method Detail |
|---|
public void handleFileDirectory(java.io.File file)
handleFileDirectory in interface ConnectionHelperfile - public void badResult()
badResult in interface ConnectionHelperpublic void displayStatus(java.lang.String message)
displayStatus in interface ConnectionHelpermessage -
public boolean processRedirect(java.net.URL connectionURL)
throws java.lang.Exception
processRedirect in interface ConnectionHelperconnectionURL -
java.lang.Exceptionpublic boolean parseFilesWithSuffix(java.lang.String suffix)
parseFilesWithSuffix in interface ConnectionHelpersuffix -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||