public final class PageResource extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PageResource.ResourceLoadStrategy |
static class |
PageResource.ResourceLocation
Enumeration representing the type of resources that may be added to the HEAD element of the document.
|
static class |
PageResource.ResourceType
Enumeration representing the type of resources that may be added to the HEAD element of the document.
|
| Constructor and Description |
|---|
PageResource(PageResource.ResourceType type, PageResource.ResourceLocation location, String value)
Constructor
|
PageResource(PageResource.ResourceType type, PageResource.ResourceLocation location, String value, PageResource.ResourceLoadStrategy loadStrategy)
Constructor
|
PageResource(PageResource.ResourceType type, String uri)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
PageResource.ResourceLoadStrategy |
getLoadStrategy()
Get how the resource should be loaded
|
PageResource.ResourceLocation |
getLocation()
Get the resource location
|
PageResource.ResourceType |
getType()
Get the resource type
|
String |
getURI()
Deprecated.
use
getValue() instead |
String |
getValue()
The URI or the content depending on the location
|
int |
hashCode() |
public PageResource(PageResource.ResourceType type, String uri)
type - The type of resource this is (CSS or JavaScript)uri - The URI to the resourcepublic PageResource(PageResource.ResourceType type, PageResource.ResourceLocation location, String value)
type - The type of resource this is (CSS, JavaScript or JavaScript feature name(s))location - The location of the resource, requiredvalue - The URI or the in-line content, requiredpublic PageResource(PageResource.ResourceType type, PageResource.ResourceLocation location, String value, PageResource.ResourceLoadStrategy loadStrategy)
type - The type of resource this is (CSS, JavaScript or JavaScript feature name(s))location - The location of the resource, requiredvalue - The URI or the in-line content, requiredloadStrategy - the loading strategy.public PageResource.ResourceLocation getLocation()
public PageResource.ResourceType getType()
@Deprecated public String getURI()
getValue() insteadpublic String getValue()
getLocation()public PageResource.ResourceLoadStrategy getLoadStrategy()