public class ResourceIdentifier extends Object
Constructor and Description |
---|
ResourceIdentifier(Resource resource)
Create a new instance based on given resource.
|
ResourceIdentifier(String resourceIdentifier)
Create a new instance based on given standard JSF resource identifier string format
library:name . |
ResourceIdentifier(String library,
String name)
Create a new instance based on given resource library and name.
|
ResourceIdentifier(UIComponent componentResource)
Create a new instance based on library and name attributes of the given component resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getIntegrity(FacesContext context)
Returns the resource integrity as base64 encoded sha384 hash.
|
String |
getLibrary()
Returns the resource library.
|
String |
getName()
Returns the resource name.
|
int |
hashCode() |
String |
toString()
Returns the resource identifier as string in standard JSF resource identifier format
library:name . |
public ResourceIdentifier(String resourceIdentifier)
library:name
.resourceIdentifier
- The standard JSF resource identifier.public ResourceIdentifier(UIComponent componentResource)
componentResource
- The component resource.public ResourceIdentifier(String library, String name)
library
- The resource lirbary.name
- The resource name.public ResourceIdentifier(Resource resource)
resource
- The resource.public String getLibrary()
public String getName()
public String getIntegrity(FacesContext context)
Copyright © 2012–2022 OmniFaces. All rights reserved.