Class ETagDefault

java.lang.Object
org.spincast.plugins.routing.ETagDefault
All Implemented Interfaces:
ETag

public class ETagDefault extends Object implements ETag
ETag default implementation.
  • Constructor Details

    • ETagDefault

      public ETagDefault(String tag)
      Constructor
    • ETagDefault

      public ETagDefault(String tag, boolean isWeak)
      Constructor
    • ETagDefault

      public ETagDefault(String tag, boolean isWeak, boolean isWildcard)
      Constructor
  • Method Details

    • getTag

      public String getTag()
      Description copied from interface: ETag
      Gets the tag text.
      Specified by:
      getTag in interface ETag
    • isWeak

      public boolean isWeak()
      Description copied from interface: ETag
      Is it weak?
      Specified by:
      isWeak in interface ETag
    • isWildcard

      public boolean isWildcard()
      Description copied from interface: ETag
      Is it a wildcard ETag?
      Specified by:
      isWildcard in interface ETag
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getHeaderValue

      public String getHeaderValue()
      Description copied from interface: ETag
      Gets the HTTP header value to use for this ETag.
      Specified by:
      getHeaderValue in interface ETag
    • matches

      public boolean matches(ETag other)
      Description copied from interface: ETag
      Does the ETag strongly matches the other specified ETag?

      If one (or both) ETag is a wildcard, it matches.

      more info

      Specified by:
      matches in interface ETag
    • matches

      public boolean matches(ETag other, boolean weakComparison)
      Description copied from interface: ETag
      Does the ETag strongly or weakly matches the other specified ETag?

      If one (or both) ETag is a wildcard, it matches.

      more info

      Specified by:
      matches in interface ETag
    • toString

      public String toString()
      Overrides:
      toString in class Object