jdk/src/java.base/share/classes/java/util/jar/Attributes.java
changeset 32037 ab4526f4ac10
parent 27804 4659e70271c4
child 36129 332b49163fc9
equal deleted inserted replaced
32036:f7693603b12c 32037:ab4526f4ac10
   524         public String toString() {
   524         public String toString() {
   525             return name;
   525             return name;
   526         }
   526         }
   527 
   527 
   528         /**
   528         /**
   529          * <code>Name</code> object for <code>Manifest-Version</code>
   529          * {@code Name} object for {@code Manifest-Version}
   530          * manifest attribute. This attribute indicates the version number
   530          * manifest attribute. This attribute indicates the version number
   531          * of the manifest standard to which a JAR file's manifest conforms.
   531          * of the manifest standard to which a JAR file's manifest conforms.
   532          * @see <a href="../../../../technotes/guides/jar/jar.html#JAR_Manifest">
   532          * @see <a href="../../../../technotes/guides/jar/jar.html#JAR_Manifest">
   533          *      Manifest and Signature Specification</a>
   533          *      Manifest and Signature Specification</a>
   534          */
   534          */
   535         public static final Name MANIFEST_VERSION = new Name("Manifest-Version");
   535         public static final Name MANIFEST_VERSION = new Name("Manifest-Version");
   536 
   536 
   537         /**
   537         /**
   538          * <code>Name</code> object for <code>Signature-Version</code>
   538          * {@code Name} object for {@code Signature-Version}
   539          * manifest attribute used when signing JAR files.
   539          * manifest attribute used when signing JAR files.
   540          * @see <a href="../../../../technotes/guides/jar/jar.html#JAR_Manifest">
   540          * @see <a href="../../../../technotes/guides/jar/jar.html#JAR_Manifest">
   541          *      Manifest and Signature Specification</a>
   541          *      Manifest and Signature Specification</a>
   542          */
   542          */
   543         public static final Name SIGNATURE_VERSION = new Name("Signature-Version");
   543         public static final Name SIGNATURE_VERSION = new Name("Signature-Version");
   544 
   544 
   545         /**
   545         /**
   546          * <code>Name</code> object for <code>Content-Type</code>
   546          * {@code Name} object for {@code Content-Type}
   547          * manifest attribute.
   547          * manifest attribute.
   548          */
   548          */
   549         public static final Name CONTENT_TYPE = new Name("Content-Type");
   549         public static final Name CONTENT_TYPE = new Name("Content-Type");
   550 
   550 
   551         /**
   551         /**
   552          * <code>Name</code> object for <code>Class-Path</code>
   552          * {@code Name} object for {@code Class-Path}
   553          * manifest attribute.
   553          * manifest attribute.
   554          * @see <a href="../../../../technotes/guides/jar/jar.html#classpath">
   554          * @see <a href="../../../../technotes/guides/jar/jar.html#classpath">
   555          *      JAR file specification</a>
   555          *      JAR file specification</a>
   556          */
   556          */
   557         public static final Name CLASS_PATH = new Name("Class-Path");
   557         public static final Name CLASS_PATH = new Name("Class-Path");
   558 
   558 
   559         /**
   559         /**
   560          * <code>Name</code> object for <code>Main-Class</code> manifest
   560          * {@code Name} object for {@code Main-Class} manifest
   561          * attribute used for launching applications packaged in JAR files.
   561          * attribute used for launching applications packaged in JAR files.
   562          * The <code>Main-Class</code> attribute is used in conjunction
   562          * The {@code Main-Class} attribute is used in conjunction
   563          * with the <code>-jar</code> command-line option of the
   563          * with the {@code -jar} command-line option of the
   564          * <tt>java</tt> application launcher.
   564          * {@code java} application launcher.
   565          */
   565          */
   566         public static final Name MAIN_CLASS = new Name("Main-Class");
   566         public static final Name MAIN_CLASS = new Name("Main-Class");
   567 
   567 
   568         /**
   568         /**
   569          * <code>Name</code> object for <code>Sealed</code> manifest attribute
   569          * {@code Name} object for {@code Sealed} manifest attribute
   570          * used for sealing.
   570          * used for sealing.
   571          * @see <a href="../../../../technotes/guides/jar/jar.html#sealing">
   571          * @see <a href="../../../../technotes/guides/jar/jar.html#sealing">
   572          *      Package Sealing</a>
   572          *      Package Sealing</a>
   573          */
   573          */
   574         public static final Name SEALED = new Name("Sealed");
   574         public static final Name SEALED = new Name("Sealed");
   575 
   575 
   576        /**
   576        /**
   577          * <code>Name</code> object for <code>Extension-List</code> manifest attribute
   577          * {@code Name} object for {@code Extension-List} manifest attribute
   578          * used for the extension mechanism that is no longer supported.
   578          * used for the extension mechanism that is no longer supported.
   579          */
   579          */
   580         public static final Name EXTENSION_LIST = new Name("Extension-List");
   580         public static final Name EXTENSION_LIST = new Name("Extension-List");
   581 
   581 
   582         /**
   582         /**
   583          * <code>Name</code> object for <code>Extension-Name</code> manifest attribute.
   583          * {@code Name} object for {@code Extension-Name} manifest attribute.
   584          * used for the extension mechanism that is no longer supported.
   584          * used for the extension mechanism that is no longer supported.
   585          */
   585          */
   586         public static final Name EXTENSION_NAME = new Name("Extension-Name");
   586         public static final Name EXTENSION_NAME = new Name("Extension-Name");
   587 
   587 
   588         /**
   588         /**
   589          * <code>Name</code> object for <code>Extension-Installation</code> manifest attribute.
   589          * {@code Name} object for {@code Extension-Installation} manifest attribute.
   590          *
   590          *
   591          * @deprecated Extension mechanism is no longer supported.
   591          * @deprecated Extension mechanism is no longer supported.
   592          */
   592          */
   593         @Deprecated
   593         @Deprecated
   594         public static final Name EXTENSION_INSTALLATION = new Name("Extension-Installation");
   594         public static final Name EXTENSION_INSTALLATION = new Name("Extension-Installation");
   595 
   595 
   596         /**
   596         /**
   597          * <code>Name</code> object for <code>Implementation-Title</code>
   597          * {@code Name} object for {@code Implementation-Title}
   598          * manifest attribute used for package versioning.
   598          * manifest attribute used for package versioning.
   599          */
   599          */
   600         public static final Name IMPLEMENTATION_TITLE = new Name("Implementation-Title");
   600         public static final Name IMPLEMENTATION_TITLE = new Name("Implementation-Title");
   601 
   601 
   602         /**
   602         /**
   603          * <code>Name</code> object for <code>Implementation-Version</code>
   603          * {@code Name} object for {@code Implementation-Version}
   604          * manifest attribute used for package versioning.
   604          * manifest attribute used for package versioning.
   605          */
   605          */
   606         public static final Name IMPLEMENTATION_VERSION = new Name("Implementation-Version");
   606         public static final Name IMPLEMENTATION_VERSION = new Name("Implementation-Version");
   607 
   607 
   608         /**
   608         /**
   609          * <code>Name</code> object for <code>Implementation-Vendor</code>
   609          * {@code Name} object for {@code Implementation-Vendor}
   610          * manifest attribute used for package versioning.
   610          * manifest attribute used for package versioning.
   611          */
   611          */
   612         public static final Name IMPLEMENTATION_VENDOR = new Name("Implementation-Vendor");
   612         public static final Name IMPLEMENTATION_VENDOR = new Name("Implementation-Vendor");
   613 
   613 
   614         /**
   614         /**
   615          * <code>Name</code> object for <code>Implementation-Vendor-Id</code>
   615          * {@code Name} object for {@code Implementation-Vendor-Id}
   616          * manifest attribute.
   616          * manifest attribute.
   617          *
   617          *
   618          * @deprecated Extension mechanism is no longer supported.
   618          * @deprecated Extension mechanism is no longer supported.
   619          */
   619          */
   620         @Deprecated
   620         @Deprecated
   621         public static final Name IMPLEMENTATION_VENDOR_ID = new Name("Implementation-Vendor-Id");
   621         public static final Name IMPLEMENTATION_VENDOR_ID = new Name("Implementation-Vendor-Id");
   622 
   622 
   623        /**
   623        /**
   624          * <code>Name</code> object for <code>Implementation-URL</code>
   624          * {@code Name} object for {@code Implementation-URL}
   625          * manifest attribute.
   625          * manifest attribute.
   626          *
   626          *
   627          * @deprecated Extension mechanism is no longer supported.
   627          * @deprecated Extension mechanism is no longer supported.
   628          */
   628          */
   629         @Deprecated
   629         @Deprecated
   630         public static final Name IMPLEMENTATION_URL = new Name("Implementation-URL");
   630         public static final Name IMPLEMENTATION_URL = new Name("Implementation-URL");
   631 
   631 
   632         /**
   632         /**
   633          * <code>Name</code> object for <code>Specification-Title</code>
   633          * {@code Name} object for {@code Specification-Title}
   634          * manifest attribute used for package versioning.
   634          * manifest attribute used for package versioning.
   635          */
   635          */
   636         public static final Name SPECIFICATION_TITLE = new Name("Specification-Title");
   636         public static final Name SPECIFICATION_TITLE = new Name("Specification-Title");
   637 
   637 
   638         /**
   638         /**
   639          * <code>Name</code> object for <code>Specification-Version</code>
   639          * {@code Name} object for {@code Specification-Version}
   640          * manifest attribute used for package versioning.
   640          * manifest attribute used for package versioning.
   641          */
   641          */
   642         public static final Name SPECIFICATION_VERSION = new Name("Specification-Version");
   642         public static final Name SPECIFICATION_VERSION = new Name("Specification-Version");
   643 
   643 
   644         /**
   644         /**
   645          * <code>Name</code> object for <code>Specification-Vendor</code>
   645          * {@code Name} object for {@code Specification-Vendor}
   646          * manifest attribute used for package versioning.
   646          * manifest attribute used for package versioning.
   647          */
   647          */
   648         public static final Name SPECIFICATION_VENDOR = new Name("Specification-Vendor");
   648         public static final Name SPECIFICATION_VENDOR = new Name("Specification-Vendor");
   649     }
   649     }
   650 }
   650 }