Package org.apache.cayenne.resource
Class URLResource
- java.lang.Object
-
- org.apache.cayenne.resource.URLResource
-
- All Implemented Interfaces:
Serializable,Resource
public class URLResource extends Object implements Resource
AResourceimplementation wrapping a resource URL.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description URLResource(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcegetRelativeResource(String relativePath)Returns a resource resolved relatively to the current resource.URLgetURL()Returns a resource URL to read (and possibly write) the resource data.StringtoString()
-
-
-
Constructor Detail
-
URLResource
public URLResource(URL url)
-
-
Method Detail
-
getRelativeResource
public Resource getRelativeResource(String relativePath)
Description copied from interface:ResourceReturns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.- Specified by:
getRelativeResourcein interfaceResource
-
getURL
public URL getURL()
Description copied from interface:ResourceReturns a resource URL to read (and possibly write) the resource data.
-
-