public.javadoc.org.spincast.plugins.routing.ETagFactoryDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
ETagFactoryDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.routing
Class ETagFactoryDefault
- java.lang.Object
-
- org.spincast.plugins.routing.ETagFactoryDefault
-
- All Implemented Interfaces:
- ETagFactory
public class ETagFactoryDefault
extends Object
implements ETagFactory
Default ETag factory.
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected static Pattern
ETAG_HEADER_VALUE_PATTERN
-
Constructor Summary
Constructors
Constructor and Description
ETagFactoryDefault()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ETag
create(String tag)
Creates a strong ETag, using a specific tag.
ETag
create(String tag,
boolean isWeak)
Creates a strong or weak ETag, using a specific tag.
ETag
create(String tag,
boolean isWeak,
boolean isWildcard)
Creates a strong or weak ETag, using a specific tag.
ETag
deserializeHeaderValue(String etagHeaderValue)
Creates an ETag object from an already formatted ETag header.
-
-
Field Detail
-
ETAG_HEADER_VALUE_PATTERN
protected static final Pattern ETAG_HEADER_VALUE_PATTERN
-
Method Detail
-
create
public ETag create(String tag)
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 interface ETagFactory
-
create
public ETag create(String tag,
boolean isWeak)
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 interface ETagFactory
isWeak
- is the ETag weak?
-
create
public ETag create(String tag,
boolean isWeak,
boolean isWildcard)
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 interface ETagFactory
isWeak
- is the ETag weak?
isWildcard
- is the ETag a wildcard? If so, the 'tag' must be
"*" or be empty.
-
deserializeHeaderValue
public ETag deserializeHeaderValue(String etagHeaderValue)
Description copied from interface: ETagFactory
Creates an ETag object from an already formatted ETag header.
- Specified by:
deserializeHeaderValue
in interface ETagFactory
- Parameters:
etagHeaderValue
- the value of the ETag header. Or an already formatted
ETag String.
Copyright © 2019. All rights reserved.