Class WarmerEntry
java.lang.Object
org.frontcache.warmer.WarmerEntry
One line of a URI list, parsed.
# comments and blank lines are ignored / /category/shoes?page=2 http://www.example.com/p/123 # absolute: rebased onto the run's key baseOnly the path and query of an entry are used; the key base comes from the run (
KeyBase). An
absolute entry whose base differs from the run's is rebased, and counted, so a preflight can
say how many were. A trailing # comment after whitespace is allowed - it is what the
failed-list output writes - while a # with no whitespace before it is a URL fragment, which a
browser never sends, and is dropped.
An invalid line is skipped and reported, not refused. The deliberate difference from
set-config: a config file with a skipped line quietly changes how every request is handled,
a URL list with a skipped line fails to warm one URL and the preflight names it.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLongest line accepted, matching the engine's defaultfront-cache.max-request-uri-length. -
Method Summary
Modifier and TypeMethodDescriptiongetKind()The path and query to request - always starts with/.Why the line is invalid.booleanisEntry()booleanbooleanTrue when this was an absolute URL whose base differs from the run's key base.static WarmerEntry
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTHLongest line accepted, matching the engine's defaultfront-cache.max-request-uri-length.- See Also:
-
-
Method Details
-
parse
- Parameters:
line- one line of the list, without its line terminatorkeyBase- the run's key base, used only to decide whether an absolute entry was rebased; may be null (nothing counts as rebased)
-
getKind
-
isEntry
public boolean isEntry() -
isInvalid
public boolean isInvalid() -
getPathAndQuery
-
isRebased
public boolean isRebased()True when this was an absolute URL whose base differs from the run's key base. -
getReason
Why the line is invalid. Null unlessisInvalid().
-