Package com.enonic.xp.resource

## Class UrlResource

- java.lang.Object
- - com.enonic.xp.resource.ResourceBase
  - - com.enonic.xp.resource.UrlResource

- All Implemented Interfaces:
    `Resource`

      @PublicApi
      public final class UrlResource
      extends ResourceBase

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UrlResource​(ResourceKey key, URL url)` |
    `UrlResource​(ResourceKey key, URL url, String resolverName)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `exists()` |
    `ByteSource` | `getBytes()` |
    `String` | `getResolverName()` |
    `long` | `getSize()` |
    `long` | `getTimestamp()` |
    `URL` | `getUrl()` |

    - ### Methods inherited from class com.enonic.xp.resource.ResourceBase

      `getKey, handleError, openReader, openStream, readBytes, readLines, readString, requireExists`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UrlResource

          public UrlResource​(ResourceKey key,
                             URL url)

    - #### UrlResource

          public UrlResource​(ResourceKey key,
                             URL url,
                             String resolverName)

  - ### Method Detail

    - #### getUrl

          public URL getUrl()

    - #### exists

          public boolean exists()

    - #### getSize

          public long getSize()

    - #### getTimestamp

          public long getTimestamp()

    - #### getBytes

          public ByteSource getBytes()

    - #### getResolverName

          public String getResolverName()