|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.util.WebConsts
public final class WebConsts
Web-server-related constants. This is for constants only of interest to Web apps.
| Field Summary | |
|---|---|
static boolean |
ALLOW_BOUNCE_TO_LOCAL_MIRROR
If true then allow users to be pushed to a local country mirror. |
static boolean |
ALLOW_BROWSER_IMAGE_SCALE
If true, allow browsers to scale JPEG/GIF images when it saves us significant work. |
static java.lang.String |
ATTR_NOFWD
Request-level attribute name to request no further redirection/forwarding (if attr non-null). |
static java.lang.String |
BANDWIDTH_LIGHTLOAD_ATTR_NAME
Name of application-scope Boolean attribute, if any, to indicate bandwidth/CPU light load. |
static java.lang.String |
BANDWIDTH_OVERLOAD_ATTR_NAME
Name of application-scope Boolean attribute, if any, to indicate bandwidth/CPU overload. |
static java.lang.String |
BANDWITDH_LIMIT_BPS_DEFAULT_PNAME
Default name of bandwidth-limit system property (bytes per second). |
static java.lang.String |
BANDWITDH_LIMIT_GBP30D_DEFAULT_PNAME
Default name of bandwidth-limit system property (gigabytes per 30 days). |
static java.lang.String |
BASE_PATH_ADMIN
Name of base of admin area below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BASE_PATH_CATPAGE
Name of base of catalogue-page area below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BASE_PATH_EXHIBITS
Name of base of exhibits area below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BASE_PATH_FEATURES
Name of base of features area below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BASE_PATH_STATIC
Name of base of static/cacheable content below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BASE_PATH_TN
Name of base of thumbnail/sample area below the WAR root; no leading or trailing `/'. |
static java.lang.String |
BETDJ_BASE_URI_ATTR_NAME
Name of the (request-level) attribute used to pass the immutable CharSequence base absolute URI of the tree to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_COMMON_SECTION
Name of common section/category dir (immutable CharSequence) for all exhibits in the view, or null if none or not known. |
static java.lang.String |
BETDJ_HTML_GENERAL_DESC_ATTR_NAME
Name of the (request-level) attribute used to pass the String HTML general tree description to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_LIST_ATTR_NAME
Name of the (request-level) attribute used to pass the (unmodifiable, sorted) List of exhibits to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_LIST_SNEXCOUNT_NAME
Name of the (request-level) attribute used to pass (unmodifiable, CharSequence-to-Integer) Map of sub-nodes to exhibit counts BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_LIST_UNIN_NAME
Name of the (request-level) attribute used to pass the boolean array of uninteresting parent nodes to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_PRWSEQ_ATTR_NAME
Name of the (request-level) attribute used to pass the immutable CharSequence prefix word sequence of the tree to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BETDJ_TITLE_ATTR_NAME
Name of the (request-level) attribute used to pass the immutable CharSequence title of the tree to BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP. |
static java.lang.String |
BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP
URI of JSP page that handles display of browsable exhibit trees. |
static boolean |
CANON_TREE_URIS_WITH_REDIR
If true then we canonicalise tree-display URIs to try to reduce state-space with 301/302 redirects. |
static boolean |
CAT_HANDLER_USE_JSP_FORWARD
If true have the catalogue page generic handler use jsp:forward where possible to get to specific handler. |
static java.lang.String |
CCET_SUPPRESS_ATTR_NAME
Name of request-scope String attribute, if any, to suppress default ETag header. |
static java.lang.String |
CCLM_SUPPRESS_ATTR_NAME
Name of request-scope Long attribute, if any, to suppress default Last-Modified header. |
static java.lang.String |
CDN_HOST
Private CDN hostname for more valuable content. |
static java.lang.String |
CON_ICON_15x15_NAME
Name of 15x15 "frown"/"con"/"against" image within static-icon area. |
static int |
DEFAULT_EXPECTED_USER_BW_BYTESPERSEC
Expected typical mean bandwidth per active/sticky user, bytes per second; strictly positive. |
static int |
DEFAULT_PAGE_CACHE_MS
General (client/proxy) page-cache time, including catalogue pages (ms); strictly positive. |
static long |
DEFAULT_STATIC_WEBITEMS_CACHE_MS
Default time to allow client to cache unchanging and heavily-used objects under /_static and elsewhere. |
static boolean |
DISPLAY_SPACE_IN_EXHIBIT_NAMES
In catalogue entries display spaces instead of hyphens. |
static boolean |
DO_FRAME_BREAKOUT
If true, attempt to break out of third-party HTML frames. |
static boolean |
EAGER_TN_USE
If true, we force thumbnails to be made if we can use them in (catalogue) pages. |
static boolean |
ENABLE_STICKY_HIT
If true, enable recording (eg via Urchin) of when a user becomes 'sticky'. |
static boolean |
ENABLE_URCHIN_STATS
If true, enable Urchin (ie Google) site stats tracking. |
static java.lang.String |
F_HTML_welcome_page
HTML welcome page for a directory. |
static java.lang.String |
F_secondary_generated_HTML_suffix
Suffix for secondary, generated HTML objects, including ``.''. |
static java.lang.String |
F_secondary_generated_WML_suffix
Suffix for secondary, generated WML objects, including ``.''. |
static java.lang.String |
F_secondary_generated_XHTML_suffix
Suffix for secondary, generated XHTML objects, including ``.''. |
static java.lang.String |
F_secondary_generated_XML_suffix
Suffix for secondary, generated XML objects, including ``.''. |
static java.lang.String |
FEATURE_COLLECTIONS_ROOT
Root of "features" collections tree, starting and ending with "/". |
static boolean |
FIRST_PAGE_AFAP
If true then try very hard to push out the first page a user sees on our site(s) ASAP. |
static int |
HOME_PAGE_TEASER_BANNER_IMAGE_COUNT
Number of teaser thumbnails to show on front-page banner strip; strictly positive. |
static java.lang.String |
HOME_URL_ACTUAL
Actual front-page URI / rooted URL (starting with '/'). |
static java.lang.String |
HOME_URL_CANON
Canonical front-page URI / rooted URL (starting with '/'). |
static java.lang.String |
MASTER_CONTEXT_ROOT
Mount point for whole WAR tree on J2EE master servers. |
static int |
MAX_NORMAL_PAGE_CACHE_MS
Maximum non-spider/SE cache time for normal pages (ms); strictly positive. |
static int |
MAX_NORMAL_PAGE_CACHE_MS_SHIFT
Power of two (bit shift) to get value close below MAX_NORMAL_PAGE_CACHE_MS. |
static int |
MAX_PG_DOWNLOAD_MS
Target limit for page-download time in ms; strictly positive. |
static int |
MAX_RESULTS_PAGES
Maximum number of pages to show, or maximum number of page buttons if there have to be more pages. |
static int |
MAX_RESULTS_PER_PAGE
When generating large chunks of paginatable output, how many to limit each page to where possible. |
static int |
MAX_SIMPLE_QUERY_LEN
Maximum length of simple-text-query in bytes (pure-ASCII characters). |
static int |
MIN_PC_COMPRESSABLE_BEFORE_ENCODE
Minimum percent-saved before we will consider sending an exhibit compressed. |
static long |
MIN_STATIC_WEBITEMS_CACHE_MS
Minimum time to allow client to cache unchanging and heavily-used objects under /_static and elsewhere. |
static int |
MOBI_REC_DEFAULT_SCREEN_WIDTH_PX
Recommended/widely-supported screen-width for .mobi devices/sites, in pixels. |
static int |
MOBO_REC_MAX_PG_WEIGHT_BYTES
Recommended maximum page weight for .mobi devices/sites, in bytes. |
static java.lang.String |
NOT_FOUND_PAGE
URL of page/JSP to handle 404 (not found) errors. |
static java.lang.String |
PAGE_NUMBER_PARAMETER
When paginating, name of parameter (HTML fieldname and GET/POST field name) to pass page number in. |
static java.lang.String |
PATH_CODE_SNAPSHOT_LATEST
Root-based path from which latest available code snapshot bundle may be downloaded. |
static java.lang.String |
PATH_JAVADOC_BUNDLE_LATEST
Root-based path from which latest available Javadoc bundle may be downloaded. |
static java.lang.String |
PATH_TN_SML
Name of small thumbnail/sample area below BASE_PATH_TN; no leading or trailing `/'. |
static java.lang.String |
PATH_TN_STD
Name of standard thumbnail/sample area below BASE_PATH_TN; no leading or trailing `/'. |
static java.lang.String |
PREFIX_CODE_SNAPSHOT
Prefix of code snapshot in code section. |
static java.lang.String |
PREFIX_JAVADOC_BUNDLE
Prefix of Javadoc bundle in code section. |
static java.lang.String |
PRO_ICON_15x15_NAME
Name of 15x15 "smile"/"pro"/"for" image within static-icon area. |
static boolean |
REDIR_MOBILES_AT_ROOT_TO_XHTML
If true then attempt to redirect mobile-phone browsers hitting front page to XHTML version. |
static java.lang.String |
REQUEST_START_DATETIME_ATTR_NAME
Name of (request-level) attribute in which JSP page start time is stored (as a Date). |
static java.lang.String |
ROBOTS_PAGE
URL of URI requested by spiders to check if spidering is allowed.. |
static java.lang.String |
SEARCH_FORM_METHOD
Method by which search form is posted; can be "post" or "get". |
static java.lang.String |
SEARCH_TIME_MS_ATTR_NAME
Name of (page-level) attribute in which last search time (ms) is stored (as a Long). |
static boolean |
SHOW_FP_TRAILS_TEASER
If true, insert teaser for trails on front page and possibly elsewhere. |
static int |
SINGLE_PAGE_CONTACT_SHEET_TN_COUNT
Most thumbnails to show on one of the best/new/etc collections pages; strictly positive. |
static long |
SPIDER_PAGE_EXPIRY_MS
Cache/expiry time for pages we want captured in search engines (ms); strictly positive. |
static int |
SPIDER_REVISIT_DAYS
Spider revisit time in days; if zero it means not to attempt to use the "revisit-after" meta tag. |
static java.lang.String |
STATS_SINK_PAGE_RRURL
Stats-sink receiver page root-relative URL. |
static java.lang.String |
STDHDR_ATTR_NAME_BREADCRUMBS
Request-level attribute name used to communicate breadcrumbs (if any) to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_KEYWORDS
Request-level attribute name used to communicate keywords String to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_LOCATION
Request-level attribute name used to communicate exhibit Location.Base to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_NOINDEX
Request-level attribute name used to indicate that this low-content page should not be SE food to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_NOINDEX_ONLY
Request-level attribute name used to indicate that this page should not be SE food to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_SUBTITLE
Request-level attribute name used to communicate sub-title String to standard page-header routine. |
static java.lang.String |
STDHDR_ATTR_NAME_TITLE
Request-level attribute name used to communicate title String to standard page-header routine. |
static boolean |
SUPPORT_HOVERBOX
If true, support Hoverbox CSS-based large-thumbnail rollovers. |
static boolean |
SUPPORT_USER_LINK_POSTING
If true, support "Reddit It | Digg This | Add to del.icio.us" style links. |
static java.lang.String |
TN_IMG_TAG_EXTRA_ATTR
Optional attributes for insertion at end of thumbnail img tags. |
static java.lang.String |
TRAIL_SELECTOR_PARAM_NAME
Name of request parameter used to select trail (by trail exhibit short name). |
static java.lang.String |
URCHIN_REQ_ATTR_NAME
Request-level attribute set non-null when Urchin code has already been set in the HEAD or page text. |
static boolean |
USE_NOINDEX_ON_DUP_CONTENT_PAGES
If true then we make use of the STDHDR_ATTR_NAME_NOINDEX_ONLY mechanism. |
static boolean |
USE_NOINDEX_ON_LOW_CONTENT_PAGES
If true then we make use of the STDHDR_ATTR_NAME_NOINDEX mechanism. |
static java.lang.String |
VIRTUAL_COLLECTIONS_BEST_PAGE
Best-exhibits collection page. |
static java.lang.String |
VIRTUAL_COLLECTIONS_BYAUTHOR_ROOT
Root of "ByAuthor" collections forest, ending with "/". |
static java.lang.String |
VIRTUAL_COLLECTIONS_BYCATEGORY_ROOT
Root of "ByCategory" collections forest, ending with "/". |
static java.lang.String |
VIRTUAL_COLLECTIONS_CUST_ICONS_ROOT
Root of custom icons collection, ending with "/". |
static java.lang.String |
VIRTUAL_COLLECTIONS_MOST_DOWNLOADED_PAGE
Most-downloaded-exhibits collection page. |
static java.lang.String |
VIRTUAL_COLLECTIONS_NEW_PAGE
New-exhibits collection page. |
static java.lang.String |
VIRTUAL_COLLECTIONS_ROOT
Root of "virtual" collections tree, starting and ending with "/". |
static java.lang.String |
VIRTUAL_COLLECTIONS_TRAILS_ROOT
Root of trails, ending with "/". |
static java.lang.String |
VIRTUAL_SITE_CUST_ALOHAEARTH_ROOT
Root of custom AlohaEarth site, starting and ending with "/". |
static java.lang.String |
VIRTUAL_SITE_CUST_LONDONPIX_ROOT
Root of custom LondonPix site, starting and ending with "/". |
static java.lang.String |
VIRTUAL_SITE_CUST_SMLPX_ROOT
Root of custom SmlPx site, starting and ending with "/". |
static java.lang.String |
VIRTUAL_SITE_CUST_SMLPX_ROOT_ACTUAL
Actual root welcome page of custom SmlPx site. |
static java.lang.String |
VIRTUAL_SITE_CUST_ZAPIX_ROOT
Root of custom LondonPix site, starting and ending with "/". |
static java.lang.String |
VIRTUAL_SITES_ROOT
Base of custom sites tree, starting and ending with "/". |
static boolean |
VOTE_BUTTONS_AUTO_HIDE_ON_EXPIRY
If true, use JavaScript to attempt to auto-hide vote buttons (roughly) when the vote permit expires. |
static int |
VOTE_MIN_REQUEST_GAP_MS
Minimum time between requests to one user to vote, and also how long they get to vote, ms; non-negative. |
static java.lang.String |
VOTER_DATA_POINT_PREFIX
Unique prefix for data-point name for vote StatsSink IDs. |
static java.lang.String |
WEB_LINE_END
Web/Net standard line-end string; CRLF. |
| Constructor Summary | |
|---|---|
private |
WebConsts()
Prevent construction of an instance. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WEB_LINE_END
public static final boolean FIRST_PAGE_AFAP
public static final java.lang.String MASTER_CONTEXT_ROOT
On deployed front-ends the root should always be ``/''; this applies to a WAR deployed as part of a J2EE app, which cannot currently be deployed at the root of the Web server (due to bugs in, for example, Sun's 1.3 RI J2EE SDK.
public static final java.lang.String BASE_PATH_EXHIBITS
public static final java.lang.String BASE_PATH_FEATURES
public static final java.lang.String BASE_PATH_ADMIN
public static final java.lang.String BASE_PATH_CATPAGE
public static final java.lang.String BASE_PATH_TN
public static final java.lang.String BASE_PATH_STATIC
public static final java.lang.String PATH_TN_STD
public static final java.lang.String PATH_TN_SML
public static final java.lang.String PATH_JAVADOC_BUNDLE_LATEST
public static final java.lang.String PATH_CODE_SNAPSHOT_LATEST
public static final java.lang.String PREFIX_JAVADOC_BUNDLE
public static final java.lang.String PREFIX_CODE_SNAPSHOT
public static final java.lang.String F_secondary_generated_HTML_suffix
public static final java.lang.String F_secondary_generated_WML_suffix
public static final java.lang.String F_secondary_generated_XHTML_suffix
public static final java.lang.String F_secondary_generated_XML_suffix
public static final java.lang.String F_HTML_welcome_page
public static final int MAX_PG_DOWNLOAD_MS
Eventual target for this is 100ms nominally including network RTT, which implies getting user to a geographically-close mirror which would further imply DNS support for the first hit.
public static final int DEFAULT_PAGE_CACHE_MS
This should be much shorter than (eg less than half) the system's default parallel slackness so as to ensure that the page gets rechecked often enough to catch important changes automatically.
A big-enough value will help caches/proxies and "Web accelerators", and generally improve perceived performance.
public static final int MAX_NORMAL_PAGE_CACHE_MS
Should be no lower than DEFAULT_PAGE_CACHE_MS and of the order of a day or so, but not necessarily exact multiples of a day to help spread refresh activity.
public static final int MAX_NORMAL_PAGE_CACHE_MS_SHIFT
public static final long SPIDER_PAGE_EXPIRY_MS
This may force HTTP/1.0-browser users (esp IE5/IE6) to hit RELOAD more often than we'd like...
We may use this value only when the page/data looks like it is being retrieved by a search engine spider/robot.
A value of several days to several months is probably reasonable.
public static final int SPIDER_REVISIT_DAYS
public static final long DEFAULT_STATIC_WEBITEMS_CACHE_MS
There is no point having this less than the default respidering time.
Note that the HTTP spec says that an expiry a year in the future is to be treated as 'never expires':
To mark a response as "never expires," an origin server sends an Expires date approximately one year from the time the response is sent. HTTP/1.1 servers SHOULD NOT send Expires dates more than one year in the future.
Something of the order of many days up to a year is probably good.
public static final long MIN_STATIC_WEBITEMS_CACHE_MS
Something of the order of a month or more is probably good.
public static final java.lang.String BANDWIDTH_OVERLOAD_ATTR_NAME
public static final java.lang.String BANDWIDTH_LIGHTLOAD_ATTR_NAME
public static final java.lang.String CCLM_SUPPRESS_ATTR_NAME
Can also be used to adjust apparent page age to reduce spidering/SE load.
If not -1 then will be used as the Last-Modified value, subject to constraints.
public static final java.lang.String CCET_SUPPRESS_ATTR_NAME
If not "" (the empty string) then well be used as the ETag value.
public static final java.lang.String BANDWITDH_LIMIT_BPS_DEFAULT_PNAME
public static final java.lang.String BANDWITDH_LIMIT_GBP30D_DEFAULT_PNAME
public static final int MIN_PC_COMPRESSABLE_BEFORE_ENCODE
Normally we don't bother trying to compress exhibits for download because:
public static final int MAX_SIMPLE_QUERY_LEN
public static final boolean DISPLAY_SPACE_IN_EXHIBIT_NAMES
public static final boolean ALLOW_BROWSER_IMAGE_SCALE
public static final boolean EAGER_TN_USE
public static final java.lang.String TN_IMG_TAG_EXTRA_ATTR
public static final java.lang.String SEARCH_FORM_METHOD
public static final java.lang.String NOT_FOUND_PAGE
public static final java.lang.String ROBOTS_PAGE
public static final java.lang.String SEARCH_TIME_MS_ATTR_NAME
public static final java.lang.String REQUEST_START_DATETIME_ATTR_NAME
public static final int MAX_RESULTS_PER_PAGE
public static final int MAX_RESULTS_PAGES
A value of 10 to 20 is typical.
public static final java.lang.String ATTR_NOFWD
public static final java.lang.String STDHDR_ATTR_NAME_BREADCRUMBS
public static final java.lang.String STDHDR_ATTR_NAME_TITLE
public static final java.lang.String STDHDR_ATTR_NAME_SUBTITLE
May be ignored if title is not set.
public static final java.lang.String STDHDR_ATTR_NAME_KEYWORDS
May be ignored if title is not set.
public static final java.lang.String STDHDR_ATTR_NAME_LOCATION
public static final java.lang.String STDHDR_ATTR_NAME_NOINDEX
This may be the case for low-content pages, such as navigation pages.
The "safe" default is to let the SEs index everything and make the quality/relevance judgements!
public static final boolean USE_NOINDEX_ON_LOW_CONTENT_PAGES
public static final java.lang.String STDHDR_ATTR_NAME_NOINDEX_ONLY
This may be the case for pages with good unique content, but where from the point of view of an SE that content might appear to be duplicate. This also applies where we'd prefer SE-driven traffic to arrive elsewhere.
The "safe" default is to let the SEs index everything and make the quality/relevance judgements!
public static final boolean USE_NOINDEX_ON_DUP_CONTENT_PAGES
public static final java.lang.String PAGE_NUMBER_PARAMETER
public static final java.lang.String HOME_URL_ACTUAL
public static final java.lang.String HOME_URL_CANON
public static final java.lang.String BROWSABLE_EXHIBIT_TREE_DISPLAY_JSP
public static final java.lang.String BETDJ_LIST_ATTR_NAME
public static final java.lang.String BETDJ_LIST_UNIN_NAME
public static final java.lang.String BETDJ_LIST_SNEXCOUNT_NAME
public static final java.lang.String BETDJ_BASE_URI_ATTR_NAME
public static final java.lang.String BETDJ_TITLE_ATTR_NAME
public static final java.lang.String BETDJ_PRWSEQ_ATTR_NAME
public static final java.lang.String BETDJ_HTML_GENERAL_DESC_ATTR_NAME
public static final java.lang.String BETDJ_COMMON_SECTION
public static final java.lang.String VIRTUAL_COLLECTIONS_ROOT
public static final java.lang.String VIRTUAL_COLLECTIONS_BYAUTHOR_ROOT
public static final java.lang.String VIRTUAL_COLLECTIONS_BYCATEGORY_ROOT
public static final java.lang.String VIRTUAL_COLLECTIONS_CUST_ICONS_ROOT
public static final java.lang.String VIRTUAL_COLLECTIONS_TRAILS_ROOT
public static final java.lang.String VIRTUAL_COLLECTIONS_BEST_PAGE
public static final java.lang.String VIRTUAL_COLLECTIONS_NEW_PAGE
public static final java.lang.String VIRTUAL_COLLECTIONS_MOST_DOWNLOADED_PAGE
public static final java.lang.String VIRTUAL_SITES_ROOT
public static final java.lang.String VIRTUAL_SITE_CUST_LONDONPIX_ROOT
public static final java.lang.String VIRTUAL_SITE_CUST_ZAPIX_ROOT
public static final java.lang.String VIRTUAL_SITE_CUST_ALOHAEARTH_ROOT
public static final java.lang.String VIRTUAL_SITE_CUST_SMLPX_ROOT
public static final java.lang.String VIRTUAL_SITE_CUST_SMLPX_ROOT_ACTUAL
public static final java.lang.String TRAIL_SELECTOR_PARAM_NAME
public static final java.lang.String FEATURE_COLLECTIONS_ROOT
public static final java.lang.String STATS_SINK_PAGE_RRURL
public static final int SINGLE_PAGE_CONTACT_SHEET_TN_COUNT
public static final boolean CAT_HANDLER_USE_JSP_FORWARD
public static final int DEFAULT_EXPECTED_USER_BW_BYTESPERSEC
Not expected to be terribly precise, but should err a little on the high side.
Used, amongst other things, for a server to estimate its own capacity.
As of 20050510:
As of 20060116: revising per-sticky-user estimate downwards, but all spiders and hotlinkers (etc) add significant per-server load, so a simple overall estimate of 2kBps is possibly more accurate.
public static final boolean DO_FRAME_BREAKOUT
public static final boolean ENABLE_URCHIN_STATS
public static final java.lang.String URCHIN_REQ_ATTR_NAME
public static final boolean ENABLE_STICKY_HIT
public static final java.lang.String VOTER_DATA_POINT_PREFIX
public static final int VOTE_MIN_REQUEST_GAP_MS
A value of the order of minutes is usually suitable.
Once a user has voted we should generally wait many times as long before requesting another vote eg in order to suppress false votes from spiders that we otherwise fail to screen out.
public static final boolean VOTE_BUTTONS_AUTO_HIDE_ON_EXPIRY
public static final java.lang.String PRO_ICON_15x15_NAME
public static final java.lang.String CON_ICON_15x15_NAME
public static final boolean ALLOW_BOUNCE_TO_LOCAL_MIRROR
Typically only done if:
Any such redirection would be temporary (302) and not done to spiders/bots.
public static final int MOBI_REC_DEFAULT_SCREEN_WIDTH_PX
public static final int MOBO_REC_MAX_PG_WEIGHT_BYTES
public static final int HOME_PAGE_TEASER_BANNER_IMAGE_COUNT
public static final boolean CANON_TREE_URIS_WITH_REDIR
This should reduce noise and server load!
We use 301 redirects to deal with non-standard URL forms, eg missing a trailing '/' or not monocased, since the duplicates that we might otherwise accept never have independent value.
We use 302 redirects to send the client to a higher node (shorter URI) that contains the same information. This can only be a temporary redirect because the tree shape (and thus the/any redirection) may change at any time in principle.
public static final boolean REDIR_MOBILES_AT_ROOT_TO_XHTML
public static final boolean SUPPORT_HOVERBOX
public static final boolean SUPPORT_USER_LINK_POSTING
public static final boolean SHOW_FP_TRAILS_TEASER
public static final java.lang.String CDN_HOST
This is rendered all lower-case to slightly improve compressibility in certain contexts, and is also prefix-less (eg no "www.") to be in canonical form.
| Constructor Detail |
|---|
private WebConsts()
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||