01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.loader;
18:
19: import java.net.URL;
20: import java.security.cert.Certificate;
21: import java.util.jar.Manifest;
22:
23: /**
24: * Resource entry.
25: *
26: * @author Remy Maucherat
27: * @version $Revision: 1.2 $ $Date: 2004/02/27 14:58:44 $
28: */
29: public class ResourceEntry {
30:
31: /**
32: * The "last modified" time of the origin file at the time this class
33: * was loaded, in milliseconds since the epoch.
34: */
35: public long lastModified = -1;
36:
37: /**
38: * Binary content of the resource.
39: */
40: public byte[] binaryContent = null;
41:
42: /**
43: * Loaded class.
44: */
45: public Class loadedClass = null;
46:
47: /**
48: * URL source from where the object was loaded.
49: */
50: public URL source = null;
51:
52: /**
53: * URL of the codebase from where the object was loaded.
54: */
55: public URL codeBase = null;
56:
57: /**
58: * Manifest (if the resource was loaded from a JAR).
59: */
60: public Manifest manifest = null;
61:
62: /**
63: * Certificates (if the resource was loaded from a JAR).
64: */
65: public Certificate[] certificates = null;
66:
67: }
|