We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.server.
Class ResourceReference
- java.lang.Object
-
- com.vaadin.shared.communication.URLReference
-
- com.vaadin.server.ResourceReference
-
All Implemented Interfaces:
public class ResourceReference extends URLReference
See Also:
-
-
Constructor Summary
Constructors Constructor Description ResourceReference(Resource resource, ClientConnector connector, String key)
-
Method Summary
All 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)
-
-