public final class ValidationResult extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ValidationResult.Reason |
Modifier | Constructor and Description |
---|---|
protected |
ValidationResult(ValidationResult.Reason reason) |
protected |
ValidationResult(ValidationResult.Reason reason,
ACHandling forbiddenACHandlingMode) |
protected |
ValidationResult(ValidationResult.Reason reason,
IOException cause) |
protected |
ValidationResult(ValidationResult.Reason reason,
String forbiddenEntry) |
protected |
ValidationResult(ValidationResult.Reason reason,
String forbiddenEntry,
WspFilter.Root invalidRoot) |
protected |
ValidationResult(ValidationResult.Reason reason,
WspFilter.Root invalidRoot,
WspFilter.Root coveringRoot) |
Modifier and Type | Method and Description |
---|---|
static ValidationResult |
deniedPathInclusion(String forbiddenPath,
WspFilter.Root invalidRoot) |
static ValidationResult |
failedToId(IOException cause) |
static ValidationResult |
failedToOpen(IOException cause) |
static ValidationResult |
forbiddenACHandlingMode(ACHandling forbiddenMode) |
static ValidationResult |
forbiddenExtension(String forbiddenEntry) |
static ValidationResult |
forbiddenRootPrefix(String forbiddenEntry,
WspFilter.Root invalidRoot) |
IOException |
getCause() |
WspFilter.Root |
getCoveringRoot() |
ACHandling |
getForbiddenACHandlingMode() |
String |
getForbiddenEntry() |
WspFilter.Root |
getInvalidRoot() |
ValidationResult.Reason |
getReason() |
static ValidationResult |
invalidMetaInf() |
static ValidationResult |
rootMissingRules(WspFilter.Root invalidRoot,
WspFilter.Root coveringRoot) |
static ValidationResult |
rootNotAllowed(WspFilter.Root invalidRoot) |
static ValidationResult |
success() |
protected ValidationResult(ValidationResult.Reason reason)
protected ValidationResult(ValidationResult.Reason reason, WspFilter.Root invalidRoot, WspFilter.Root coveringRoot)
protected ValidationResult(ValidationResult.Reason reason, IOException cause)
protected ValidationResult(ValidationResult.Reason reason, String forbiddenEntry)
protected ValidationResult(ValidationResult.Reason reason, String forbiddenEntry, WspFilter.Root invalidRoot)
protected ValidationResult(ValidationResult.Reason reason, ACHandling forbiddenACHandlingMode)
public ValidationResult.Reason getReason()
public WspFilter.Root getInvalidRoot()
public WspFilter.Root getCoveringRoot()
public IOException getCause()
public String getForbiddenEntry()
public ACHandling getForbiddenACHandlingMode()
public static ValidationResult success()
public static ValidationResult invalidMetaInf()
public static ValidationResult failedToId(IOException cause)
public static ValidationResult failedToOpen(IOException cause)
public static ValidationResult rootNotAllowed(WspFilter.Root invalidRoot)
public static ValidationResult rootMissingRules(WspFilter.Root invalidRoot, WspFilter.Root coveringRoot)
public static ValidationResult forbiddenExtension(String forbiddenEntry)
public static ValidationResult forbiddenACHandlingMode(ACHandling forbiddenMode)
public static ValidationResult deniedPathInclusion(String forbiddenPath, WspFilter.Root invalidRoot)
public static ValidationResult forbiddenRootPrefix(String forbiddenEntry, WspFilter.Root invalidRoot)
Copyright © 2013-2017. All Rights Reserved.