|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
DelegateStateT - The state of the downloader delegate. This allows any delegate
downloader to be plugged in.public interface Sha1DState<DelegateStateT>
The state for the SHA-1 verifying downloader. This downloader delegates to a delegate downloader and verifies that the SHA-1 hash of the file downloaded by the delegate matches an expected value.
| Nested Class Summary | |
|---|---|
static interface |
Sha1DState.Downloading<T>
A state that indicates that the delegate downloader is downloading. |
static class |
Sha1DState.DownloadingImpl<T>
An implementation of the downloading state. |
static interface |
Sha1DState.Failed<T>
A state that indicates that the delegate downloader has failed. |
static class |
Sha1DState.FailedImpl<T>
An implementation of the failed state. |
static interface |
Sha1DState.Sha1Mismatch<T>
A state that indicates the SHA-1 did not match the expected value. |
static class |
Sha1DState.Sha1MismatchImpl<T>
An implementation of the SHA-1 mismatch state. |
static interface |
Sha1DState.VerifiedSha1<T>
A state that indicates the SHA-1 has been verified. |
static class |
Sha1DState.VerifiedSha1Impl<T>
An implementation of the verified SHA-1 state. |
static interface |
Sha1DState.VerifyingSha1<T>
A state that indicates the SHA-1 is in the process of being verified. |
static class |
Sha1DState.VerifyingSha1Impl<T>
An implementation of the verifying SHA-1 state. |
static interface |
Sha1DState.Visitor<T,DelegateStateT>
A visitor for a SHA-1 downloader state. |
static class |
Sha1DState.VisitorAdapter<T,DelegateStateT>
An adaptor to help implement visitors. |
| Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState |
|---|
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded |
| Method Summary | ||
|---|---|---|
|
accept(Sha1DState.Visitor<T,DelegateStateT> visitor)
Accepts a visitor to this state. |
|
| Methods inherited from interface org.lastbamboo.common.download.DownloaderState |
|---|
getType |
| Method Detail |
|---|
<T> T accept(Sha1DState.Visitor<T,DelegateStateT> visitor)
T - The return type of the visitor.visitor - The visitor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||