public class ResourcePath extends Object
Represents a path to the resource.
In correspondance to Resource
, it does not allow to obtain defails of the requested resource, it knows just its path.
This class primarily serves as a base for configuring Resource Mapping that drives resources through ResourceServlet
.
Modifier and Type | Field and Description |
---|---|
String |
resourcePath |
Constructor and Description |
---|
ResourcePath(ResourceKey key)
Creates a relative resource path from given
ResourceKey |
ResourcePath(String resourcePath)
Creates resource path from given that can be either absolute or relative URL
|
ResourcePath(URL url)
Creates resource path from provided absolute URL
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isAbsoluteURL()
Is given resource path an absolute URL?
|
String |
toExternalForm()
Exports given resource path to its external form that is
|
String |
toString() |
public String resourcePath
public ResourcePath(String resourcePath)
public ResourcePath(URL url)
public ResourcePath(ResourceKey key)
ResourceKey
public String toExternalForm()
public boolean isAbsoluteURL()
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.