Package org.spincast.plugins.routing
Class ETagFactoryDefault
java.lang.Object
org.spincast.plugins.routing.ETagFactoryDefault
- All Implemented Interfaces:
ETagFactory
Default ETag factory.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 etagHeaderValue) Creates an ETag object from an already formatted ETag header.
-
Field Details
-
ETAG_HEADER_VALUE_PATTERN
-
-
Constructor Details
-
ETagFactoryDefault
@Inject public ETagFactoryDefault()Constructor
-
-
Method Details
-
create
Description copied from interface:ETagFactory
Creates a strong ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Specified by:
create
in interfaceETagFactory
-
create
Description copied from interface:ETagFactory
Creates a strong or weak ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Specified by:
create
in interfaceETagFactory
isWeak
- is the ETag weak?
-
create
Description copied from interface:ETagFactory
Creates a strong or weak ETag, using a specific tag. THis tag will be used as is to generate the ETag header value.- Specified by:
create
in interfaceETagFactory
isWeak
- is the ETag weak?isWildcard
- is the ETag a wildcard? If so, the 'tag' must be "*" or be empty.
-
deserializeHeaderValue
Description copied from interface:ETagFactory
Creates an ETag object from an already formatted ETag header.- Specified by:
deserializeHeaderValue
in interfaceETagFactory
- Parameters:
etagHeaderValue
- the value of the ETag header. Or an already formatted ETag String.
-