Interface ETagResource.Matcher<T,R>

Type Parameters:
T - Type of the resource.
R - Type of the result.
Enclosing class:
ETagResource<T>

public static interface ETagResource.Matcher<T,R>
Matcher for the different states of an ETagResource.
Since:
8.3.0
Author:
XIMA MEDIA GmbH
See Also:
  • Method Details

    • modified

      R modified(ETagResource.Modified<T> modified)
      Called when the resource was modified.
      Parameters:
      modified - Resource that was modified.
      Returns:
      Result of the match.
    • notFound

      R notFound(ETagResource.NotFound<T> notFound)
      Called when the resource was not found.
      Parameters:
      notFound - Resource that was not found.
      Returns:
      Result of the match.
    • notModified

      R notModified(ETagResource.NotModified<T> notModified)
      Called when the resource was not modified.
      Parameters:
      notModified - Resource that was not modified.
      Returns:
      Result of the match.