|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knuth.chkupdate.UpdateCheck
public class UpdateCheck
Handler-class which manages the Provider and checks for Updates.
Field Summary | |
---|---|
private Provider |
provider
The current Provider. |
Constructor Summary | |
---|---|
UpdateCheck()
Creates a new "UpdateCheck"-Object without any Provider. |
|
UpdateCheck(Provider provider)
Creates a new "UpdateCheck"-Object using the given Provider. |
Method Summary | |
---|---|
UpdateResult |
checkForUpdates()
Checks for an Update using the current Provider. |
static UpdateResult |
checkForUpdates(Provider provider)
Checks for an update using the given Provider. |
void |
setProvider(Provider provider)
Sets a new Provider for the Update-Check. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Provider provider
Constructor Detail |
---|
public UpdateCheck(Provider provider)
provider
- The Provider to use for the Update-
Check.public UpdateCheck()
setProvider(Provider provider)
Method Detail |
---|
public void setProvider(Provider provider)
provider
- The new Provider to use for the
Update-Check.public UpdateResult checkForUpdates() throws UpdateRequestException, UpdateResponseException
NoProviderException
- Thrown when no Provider
was specified.
UpdateRequestException
- Thrown when
there was a problem requesting informations
from the Provider.
UpdateResponseException
- Thrown when
there was a problem parsing the response
from the Provider.public static UpdateResult checkForUpdates(Provider provider) throws UpdateRequestException, UpdateResponseException
provider
- The Provider to use for the Update-
Check.
UpdateRequestException
- Thrown when
there was a problem requesting informations
from the Provider.
UpdateResponseException
- Thrown when
there was a problem parsing the response
from the Provider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |