public enum ResourcePhase extends Enum<ResourcePhase>
| Enum Constant and Description |
|---|
DEFER
|
INLINE
Code is rendered directly to the HTTP response.
|
INTERACTION
Intended for page’s non-critical, dynamic behaviours.
|
REQUIRE
Code should be loaded and run immediately as the client encounters it, blocking further
HTML parsing.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourcePhase |
defaultPhase()
Method responsible for managing the default phase.
|
static ResourcePhase |
getPhaseOrDefault(String phase) |
static ResourcePhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourcePhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourcePhase INLINE
<style> and <script> tags. In other rendering contexts,
the text content will be returned.public static final ResourcePhase REQUIRE
<script src=""> or <link href=""> as appropriate.public static final ResourcePhase DEFER
INLINE and REQUIRE phases has executed and the initial HTTP
response has completed. In a browser context, this means when the closing </html> tag
is encountered.
When rendering to HTML, code will be referenced by URL, accessed via <script defer src=""> or
<link href=""> as appropriate.public static final ResourcePhase INTERACTION
public static ResourcePhase[] values()
for (ResourcePhase c : ResourcePhase.values()) System.out.println(c);
public static ResourcePhase valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ResourcePhase getPhaseOrDefault(@Nullable String phase)
public static ResourcePhase defaultPhase()
Copyright © 2024 Atlassian. All rights reserved.