JarURLResource (Apache Tomcat 7.0.96 API Documentation)

org.apache.jasper.compiler

## Class JarURLResource

- java.lang.Object
- - org.apache.jasper.compiler.JarURLResource

- All Implemented Interfaces:
    JarResource

      public class JarURLResource
      extends java.lang.Object
      implements JarResource

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JarURLResource(java.lang.String jarUrl)`
    `JarURLResource(java.net.URL jarURL)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.net.URL` | `getEntry(java.lang.String name)`
    `java.util.jar.JarFile` | `getJarFile()`
    `java.lang.String` | `getUrl()`

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

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

- - ### Constructor Detail

    - #### JarURLResource

          public JarURLResource(java.net.URL jarURL)

    - #### JarURLResource

          public JarURLResource(java.lang.String jarUrl)

  - ### Method Detail

    - #### getJarFile

          public java.util.jar.JarFile getJarFile()
                                           throws java.io.IOException

      Specified by:
        `getJarFile` in interface `JarResource`
      Returns:
        The JarFile for this resource. A new instance of JarFile should be returned on each call.
      Throws:
        `java.io.IOException`

    - #### getUrl

          public java.lang.String getUrl()

      Specified by:
        `getUrl` in interface `JarResource`
      Returns:
        The URL of this resource. May or may not point to the actual Jar file.

    - #### getEntry

          public java.net.URL getEntry(java.lang.String name)

      Specified by:
        `getEntry` in interface `JarResource`
      Returns:
        The URL for the entry within this resource.

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.