Package com.vaadin.server
Class ResourceReference
- java.lang.Object
-
- com.vaadin.shared.communication.URLReference
-
- com.vaadin.server.ResourceReference
-
- All Implemented Interfaces:
Serializable
public class ResourceReference extends URLReference
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceReference(Resource resource, ClientConnector connector, String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceReference
create(Resource resource, ClientConnector connector, String key)
static String
encodeFileName(String filename)
Resource
getResource()
static Resource
getResource(URLReference reference)
String
getURL()
Returns the URL that this object refers to.-
Methods inherited from class com.vaadin.shared.communication.URLReference
setURL
-
-
-
-
Constructor Detail
-
ResourceReference
public ResourceReference(Resource resource, ClientConnector connector, String key)
-
-
Method Detail
-
getResource
public Resource getResource()
-
getURL
public String getURL()
Description copied from class:URLReference
Returns the URL that this object refers to.Note that the URL can use special protocols like theme://
- Overrides:
getURL
in classURLReference
- Returns:
- The URL for this reference or null if unknown.
-
create
public static ResourceReference create(Resource resource, ClientConnector connector, String key)
-
getResource
public static Resource getResource(URLReference reference)
-
-