FileDocCategorySizeDatePackage
AppserverStaticContent.javaAPI DocGlassfish v2 API4996Fri May 04 22:34:12 BST 2007com.sun.enterprise.appclient.jws

AppserverStaticContent

public class AppserverStaticContent extends StaticContent
Represents content to be served back to Java Web Start on users' systems.
author
tjquinn

Fields Summary
private boolean
isSigned
records whether this particular static content instance represents a signed jar or not
Constructors Summary
public AppserverStaticContent(ContentOrigin origin, String contentKey, String path, File file, URI installRootURI, boolean isMainJarFile)
Returns a new instance of the AppserverStaticContent class.

param
origin the owning ContentOrigin
param
contentKey content key for storing and retrieving the content
param
path path within the content's subcategory of this content
param
file File object for the physical file corresponding to this static content
param
installRootURI the app server's installation root URI
param
isMainJarFile whether this appserver static content should be flagged as the main jar in a JNLP document
return
new StaticContent object

    
                                                                             
                 
        super(origin, contentKey, path, file, installRootURI, isMainJarFile);
    
public AppserverStaticContent(ContentOrigin origin, String contentKey, String path, File file, URI installRootURI)
Returns a new instance of the AppserverStaticContent class that is not a main jar.

param
origin the owning ContentOrigin for the new content
param
contentKey content key for storing and retrieving the content
param
path path within the content's subcategory of this content
param
file File object for the physical file corresponding to this static content
param
installRootURI installation URI for the app server
return
new StaticContent object

        this(origin, contentKey, path, file, installRootURI, false);
    
public AppserverStaticContent(ContentOrigin origin, String contentKey, String path, File file, URI installRootURI, boolean isMainJarFile, boolean isSigned)
Returns a new instance of the AppserverStaticContent class that is not a main jar.

param
origin owning ContentOrigin of the new content
param
content key prefix for storing and retrieving the content
param
path within the content's subcategory of this content
param
file object for the physical file corresponding to this static content
param
the app server's installation root URI
param
whether the content is a jar that contains the main class we want Java Web Start to run
param
whether the content is a signed jar or not
return
new StaticContent object

        this(origin, contentKey, path, file, installRootURI, isMainJarFile);
        this.isSigned = isSigned;
    
Methods Summary
public java.lang.StringgetPath()
Returns the path for this content.

For appserver static content, the content key and the path are the same.

        return getContentKey();