Package net.sourceforge.jnlp
Class JNLPFile.ManifestsAttributes
- java.lang.Object
-
- net.sourceforge.jnlp.JNLPFile.ManifestsAttributes
-
- Enclosing class:
- JNLPFile
public class JNLPFile.ManifestsAttributes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPP_LIBRARY_ALLOWABLEstatic java.lang.StringAPP_NAMEstatic java.lang.StringCALLER_ALLOWABLEstatic java.lang.StringCODEBASEstatic java.lang.StringENTRY_POINTstatic java.lang.StringPERMISSIONSstatic java.lang.StringTRUSTED_LIBRARYstatic java.lang.StringTRUSTED_ONLY
-
Constructor Summary
Constructors Constructor Description ManifestsAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathMatcher.ClasspathMatchersgetApplicationLibraryAllowableCodebase()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_libraryjava.lang.StringgetApplicationName()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_namejava.lang.StringgetAttribute(java.util.jar.Attributes.Name name)get standard attributeClasspathMatcher.ClasspathMatchersgetCallerAllowableCodebase()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#caller_allowableClasspathMatcher.ClasspathMatchersgetCodebase()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#codebaseClasspathMatcher.ClasspathMatchersgetCodeBaseMatchersAttribute(java.lang.String s, boolean includePath)ClasspathMatcher.ClasspathMatchersgetCodeBaseMatchersAttribute(java.util.jar.Attributes.Name name, boolean includePath)java.lang.String[]getEntryPoints()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#entry_ptjava.lang.StringgetEntryPointString()java.lang.StringgetMainClass()main class can be defined outside of manifest.booleanisLoader()JNLPFile.ManifestBooleanisSandboxForced()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissionsJNLPFile.ManifestBooleanisTrustedLibrary()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#trusted_libraryJNLPFile.ManifestBooleanisTrustedOnly()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#trusted_onlyjava.lang.StringpermissionsToString()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissionsvoidsetLoader(JNLPClassLoader loader)
-
-
-
Field Detail
-
APP_NAME
public static final java.lang.String APP_NAME
- See Also:
- Constant Field Values
-
CALLER_ALLOWABLE
public static final java.lang.String CALLER_ALLOWABLE
- See Also:
- Constant Field Values
-
APP_LIBRARY_ALLOWABLE
public static final java.lang.String APP_LIBRARY_ALLOWABLE
- See Also:
- Constant Field Values
-
PERMISSIONS
public static final java.lang.String PERMISSIONS
- See Also:
- Constant Field Values
-
CODEBASE
public static final java.lang.String CODEBASE
- See Also:
- Constant Field Values
-
TRUSTED_ONLY
public static final java.lang.String TRUSTED_ONLY
- See Also:
- Constant Field Values
-
TRUSTED_LIBRARY
public static final java.lang.String TRUSTED_LIBRARY
- See Also:
- Constant Field Values
-
ENTRY_POINT
public static final java.lang.String ENTRY_POINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLoader
public void setLoader(JNLPClassLoader loader)
-
isLoader
public boolean isLoader()
-
getMainClass
public java.lang.String getMainClass()
main class can be defined outside of manifest. This method is mostly for completeness- Returns:
- main-class as it is specified in application
-
getEntryPoints
public java.lang.String[] getEntryPoints()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#entry_pt- Returns:
- values of Entry-Points attribute
-
getEntryPointString
public java.lang.String getEntryPointString()
-
getApplicationName
public java.lang.String getApplicationName()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name- Returns:
- value of Application-Name manifest attribute
-
getCallerAllowableCodebase
public ClasspathMatcher.ClasspathMatchers getCallerAllowableCodebase()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#caller_allowable- Returns:
- values of Caller-Allowable-Codebase manifest attribute
-
getApplicationLibraryAllowableCodebase
public ClasspathMatcher.ClasspathMatchers getApplicationLibraryAllowableCodebase()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_library- Returns:
- values of Application-Library-Allowable-Codebase manifest attribute
-
getCodebase
public ClasspathMatcher.ClasspathMatchers getCodebase()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#codebase- Returns:
- values of Codebase manifest attribute
-
isTrustedOnly
public JNLPFile.ManifestBoolean isTrustedOnly()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#trusted_only- Returns:
- value of Trusted-Only manifest attribute
-
isTrustedLibrary
public JNLPFile.ManifestBoolean isTrustedLibrary()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#trusted_library- Returns:
- value of Trusted-Library manifest attribute
-
isSandboxForced
public JNLPFile.ManifestBoolean isSandboxForced()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissions- Returns:
- value of Permissions manifest attribute
-
permissionsToString
public java.lang.String permissionsToString()
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissions- Returns:
- plain string values of Permissions manifest attribute
-
getAttribute
public java.lang.String getAttribute(java.util.jar.Attributes.Name name)
get standard attribute- Parameters:
name- name of the manifest attribute to find in application- Returns:
- plain attribute value
-
getCodeBaseMatchersAttribute
public ClasspathMatcher.ClasspathMatchers getCodeBaseMatchersAttribute(java.lang.String s, boolean includePath)
-
getCodeBaseMatchersAttribute
public ClasspathMatcher.ClasspathMatchers getCodeBaseMatchersAttribute(java.util.jar.Attributes.Name name, boolean includePath)
-
-