Package org.spincast.core.routing
Interface ETagFactory
- All Known Implementing Classes:
ETagFactoryDefault
public interface ETagFactory
Factory for ETags
-
Method Summary
Modifier and TypeMethodDescriptionCreates a strong ETag, using a specific tag.Creates a strong or weak ETag, using a specific tag.Creates a strong or weak ETag, using a specific tag.deserializeHeaderValue
(String etagHeader) Creates an ETag object from an already formatted ETag header.
-
Method Details
-
create
Creates a strong ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Parameters:
eTag
- the tag to use.
-
create
Creates a strong or weak ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Parameters:
eTag
- the tag to use.isWeak
- is the ETag weak?
-
create
Creates a strong or weak ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Parameters:
eTag
- the tag to use.isWeak
- is the ETag weak?isWildcard
- is the ETag a wildcard? If so, the 'tag' must be "*" or be empty.
-
deserializeHeaderValue
Creates an ETag object from an already formatted ETag header.- Parameters:
etagHeader
- the value of the ETag header. Or an already formatted ETag String.- Throws:
an
- exception is thrown if the value is invalid.
-