Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

A `Resource` implementation wrapping a resource URL.

Since:
  3.1
See Also:
  Serialized Form

Constructor Summary
`URLResource(URL url)`

Method Summary
`Resource` | `getRelativeResource(String relativePath)` Returns a resource resolved relatively to the current resource.
`URL` | `getURL()` Returns a resource URL to read (and possibly write) the resource data.
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### URLResource

    public URLResource(URL url)

Method Detail

### getRelativeResource

    public Resource getRelativeResource(String relativePath)

  Description copied from interface: `Resource`
  Returns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.

  Specified by:
    `getRelativeResource` in interface `Resource`

### getURL

    public URL getURL()

  Description copied from interface: `Resource`
  Returns a resource URL to read (and possibly write) the resource data.

  Specified by:
    `getURL` in interface `Resource`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001–2014 Apache Cayenne. All rights reserved.