Package org.apache.tapestry5.internal
Class InternalConstants
java.lang.Object
org.apache.tapestry5.internal.InternalConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Request attribute, set to true once the active page (as identified in the incoming component event or page render request) has been successfully loaded.static final String
static final String
Request attribute that can be set to bypass page activation.static final String
The element name for a submit input element used to cancel the form (rather than submit it normally).static final String
Deprecated.static final String
static final String
The name of a query parameter that stores the containing page (used in action links when the page containing the component is not the same as the page that was rendering).static final String
Deprecated.static final String
Used in some Ajax scenarios to set the content type for the response early, when the Page instance (the authority on content types) is known.static final String
Virtual folder name for the core library.static final String
Name of the coreJavaScriptStack
, which supplies the basic JavaScript infrastructure on the client.static final String
Deprecated.static final String[]
Deprecated.UseCommonsUtils.EMPTY_STRING_ARRAY
insteadstatic final String
Identifies the start of an expansion inside a template.static final String
Constant for a false boolean value to be used inComponentModel
meta attributes.static final String
Name of event triggered by Grid sub-components when an in-place Grid is updated.static final String
Deprecated.static final String
The prefix used to create the names of the events triggered for REST endpoint event handler methods.static final String
Special prefix for parameters that are inherited from named parameters of their container.static Class<?>[]
Annotation types for event handler method parameters which have injected values, not ones provided by the URL.static final ContentType
static final String
Required MIME type for JSON responses.static final String
static final String
The name of the query parameter that stores the page activation context inside an action request.static final String
As above but to store the name of the page.static final String
static final String
Key inside the response that contains the partial page render keys that are used to update the client.static final String
Name of the ComponentModel metadata key whiche stores the PublishEvent data.static final String
Name of the JSONObject key name which holds the name of the event to be published.static final String
A bit of a hack that allows, in production mode, for a component event request to "unwind" when the component referenced in the URL does not exist.static final String
The name of theComponentModel
meta attribute which tells whether REST endpoint event handler methods are presentstatic final String
The name of theComponentModel
meta attribute which lists the REST endpoint event handler methods.static final String[]
The names of the standard controlled subpackages.static final String
Request attribute key; if non-null, then automatic GZIP compression of response stream is suppressed.static final String
Used to suppress the stylesheets from the 'core' stack; this is used on certain pages that want to work around application-specific overrides to the core stack stylesheets.static final String
Name of request parameter that suppresses the logic that injects a random-ish namespace into allocated ids when rending partial page responses.static final String
Deprecated.static final long
static final String
Constant for a true boolean value to be used inComponentModel
meta attributes. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TAPESTRY_APP_PACKAGE_PARAM
Deprecated.Init parameter used to identify the package from which application classes are loaded. Such classes are in the pages, components and mixins sub-packages.- See Also:
-
DISABLE_DEFAULT_MODULES_PARAM
Deprecated.Turns off loading of default modules (as driven by JAR file Manifest entries).- See Also:
-
PAGE_CONTEXT_NAME
The name of the query parameter that stores the page activation context inside an action request.- See Also:
-
GRID_INPLACE_UPDATE
Name of event triggered by Grid sub-components when an in-place Grid is updated.- See Also:
-
CONTAINER_PAGE_NAME
The name of a query parameter that stores the containing page (used in action links when the page containing the component is not the same as the page that was rendering). The active page (the page which initiated the render) is encoded into the URL, and the containing page is tacked on as this query parameter.- See Also:
-
MIXINS_SUBPACKAGE
- See Also:
-
COMPONENTS_SUBPACKAGE
- See Also:
-
PAGES_SUBPACKAGE
- See Also:
-
BASE_SUBPACKAGE
- See Also:
-
CONTENT_TYPE_ATTRIBUTE_NAME
Used in some Ajax scenarios to set the content type for the response early, when the Page instance (the authority on content types) is known. The value is of typeContentType
.- See Also:
-
CHARSET_CONTENT_TYPE_PARAMETER
Deprecated.- See Also:
-
PAGE_NAME_ATTRIBUTE_NAME
As above but to store the name of the page. Necessary for determining the correctMarkupModel
for the response.- See Also:
-
JSON_MIME_TYPE
Required MIME type for JSON responses. If this MIME type is not used, the client-side Prototype code will not recognize the response as JSON, and the Ajax.Response.responseJSON property will be null.- See Also:
-
SUPPRESS_COMPRESSION
Request attribute key; if non-null, then automatic GZIP compression of response stream is suppressed. This is useful when the code opening the response stream wants to explicitly control whether GZIP compression occurs or not. Alias toTapestryHttpConstants.SUPPRESS_COMPRESSION
.- Since:
- 5.1.0.0
- See Also:
-
CONTENT_ENCODING_HEADER
Deprecated.Name of response header for content encoding.- Since:
- 5.1.0.0
- See Also:
-
GZIP_CONTENT_ENCODING
Deprecated.Response content encoding value indicating use of GZIP compression.- Since:
- 5.1.0.0
- See Also:
-
EXPANSION_START
Identifies the start of an expansion inside a template.- See Also:
-
INHERIT_BINDING_PREFIX
Special prefix for parameters that are inherited from named parameters of their container.- See Also:
-
TEN_YEARS
-
EMPTY_STRING_ARRAY
Deprecated.UseCommonsUtils.EMPTY_STRING_ARRAY
instead -
CORE_STACK_NAME
Name of the coreJavaScriptStack
, which supplies the basic JavaScript infrastructure on the client.- Since:
- 5.2.0
- See Also:
-
CORE_LIBRARY
Virtual folder name for the core library. The core library is special as any component not present in another library (including the application library) is searched for inside core.- Since:
- 5.3
- See Also:
-
SUBPACKAGES
The names of the standard controlled subpackages.- Since:
- 5.3
-
CANCEL_NAME
The element name for a submit input element used to cancel the form (rather than submit it normally).- Since:
- 5.3
- See Also:
-
BYPASS_ACTIVATION
Request attribute that can be set to bypass page activation.- Since:
- 5.4
- See Also:
-
PARTIAL_KEY
Key inside the response that contains the partial page render keys that are used to update the client.- Since:
- 5.4
- See Also:
-
ACTIVE_PAGE_LOADED
Request attribute, set to true once the active page (as identified in the incoming component event or page render request) has been successfully loaded. This is very important to theExceptionReport
page, which can possibly fail (resulting in a servlet container 500 response) if the page can't be loaded (because if the page can't be loaded, then a link to the page can't be created).- Since:
- 5.4
- See Also:
-
SUPPRESS_CORE_STYLESHEETS
Used to suppress the stylesheets from the 'core' stack; this is used on certain pages that want to work around application-specific overrides to the core stack stylesheets.- Since:
- 5.4
- See Also:
-
REFERENCED_COMPONENT_NOT_FOUND
A bit of a hack that allows, in production mode, for a component event request to "unwind" when the component referenced in the URL does not exist. This is related to TAP5-1481. This situation can most likely occur when a web spider, such as Google, uses an old component event URI from a prior deployment, which no longer works in a new deployment, due to structural changes. Since changing the APIs that significantly is forbidden, a non-null value is added as anRequest
attribute.- Since:
- 5.4
- See Also:
-
SUPPRESS_NAMESPACED_IDS
Name of request parameter that suppresses the logic that injects a random-ish namespace into allocated ids when rending partial page responses. This, of course, requires a lot of testing to ensure that there are no resulting name clashes, and should not be used inside Zones containing anAjaxFormLoop
.- Since:
- 5.4
- See Also:
-
JAVASCRIPT_CONTENT_TYPE
- Since:
- 5.4
-
PUBLISH_COMPONENT_EVENTS_META
Name of the ComponentModel metadata key whiche stores the PublishEvent data.- Since:
- 5.4.2
- See Also:
-
PUBLISH_COMPONENT_EVENTS_URL_PROPERTY
Name of the JSONObject key name which holds the name of the event to be published.- Since:
- 5.4.2
- See Also:
-
HTTP_METHOD_EVENT_PREFIX
The prefix used to create the names of the events triggered for REST endpoint event handler methods.- Since:
- 5.8.0
- See Also:
-
REST_ENDPOINT_EVENT_HANDLER_METHOD_PRESENT
The name of theComponentModel
meta attribute which tells whether REST endpoint event handler methods are present- Since:
- 5.8.0
- See Also:
-
REST_ENDPOINT_EVENT_HANDLER_METHODS
The name of theComponentModel
meta attribute which lists the REST endpoint event handler methods.- Since:
- 5.8.0
- See Also:
-
TRUE
Constant for a true boolean value to be used inComponentModel
meta attributes.- See Also:
-
FALSE
Constant for a false boolean value to be used inComponentModel
meta attributes.- See Also:
-
INJECTED_PARAMETERS
Annotation types for event handler method parameters which have injected values, not ones provided by the URL. -
SUPPORTED_HTTP_METHOD_EVENTS
-
SUPPORTED_HTTP_METHOD_EVENT_HANDLER_METHOD_NAMES
-
-
Constructor Details
-
InternalConstants
public InternalConstants()
-
TapestryHttpInternalConstants.CHARSET_CONTENT_TYPE_PARAMETER
instead