Class IfCondition

    • Constructor Detail

      • IfCondition

        protected IfCondition​(String name)
      • IfCondition

        protected IfCondition​(String name,
                              Object value)
    • Method Detail

      • modifiedSince

        public static IfCondition.IfModifiedSince modifiedSince​(long milliseconds)
        Determines if the remote data has been modified since the specified date
        Parameters:
        milliseconds - the date in milliseconds
        Returns:
        if modified since condition
      • unModifiedSince

        public static IfCondition.IfUnModifiedSince unModifiedSince​(long milliseconds)
        Determines if the remote data has been un-modified since the specified date
        Parameters:
        milliseconds - the date in milliseconds
        Returns:
        if un-modified since condition
      • unModifiedSince

        public static IfCondition.IfUnModifiedSince unModifiedSince​(Date date)
        Determines if the remote data has been un-modified since the specified date
        Parameters:
        date - the date since un-modified
        Returns:
        if un-modified since condition
      • modifiedSince

        public static IfCondition.IfModifiedSince modifiedSince​(Date date)
        Determines if the remote data has been modified since the specified date
        Parameters:
        date - the date condition
        Returns:
        if modified since condition
      • noneMatch

        public static IfCondition.IfNoneMatch noneMatch​(String matchCondition)
        Compares the ETag as a condition to determine if the remote data does not match the checksum
        Parameters:
        matchCondition - the match condition (ETag)
        Returns:
        the if none match condition
      • match

        public static IfCondition.IfMatch match​(String matchValue)
        Compares the ETag as a condition to determine if the remote data matches the checksum
        Parameters:
        matchValue - the match value (ETag)
        Returns:
        the if match condition