Class NestedAppClientDeployerHelper
- java.lang.Object
-
- org.glassfish.appclient.server.core.AppClientDeployerHelper
-
- org.glassfish.appclient.server.core.NestedAppClientDeployerHelper
-
public class NestedAppClientDeployerHelper extends AppClientDeployerHelper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.appclient.server.core.AppClientDeployerHelper
AppClientDeployerHelper.Proxy
-
-
Field Summary
-
Fields inherited from class org.glassfish.appclient.server.core.AppClientDeployerHelper
ACC_MAIN_LOGGER, archivist, LOG_MESSAGE_RESOURCE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddClientPolicyFiles(OutputJarArchive clientFacadeArchive)Adds the client policy files to the top-level generated JAR.protected voidaddTopLevelContentToClientFacade(OutputJarArchive facadeArchive)URIappClientServerOriginalAnchor(DeploymentContext dc)Returns the URI on the server to the original location of the app client.URIappClientServerURI(DeploymentContext dc)Returns the URI to the server's copy of the developer's original app client JAR.URIappClientURIWithinApp(DeploymentContext dc)Returns the URI within the enclosing app of the app client JAR.URIappClientUserURI(DeploymentContext dc)Returns the URI to the developer's original app client JAR within the download directory the user specifies in "deploy --retrieve" or "get-client-stubs."URIappClientUserURIForFacade(DeploymentContext dc)Returns the URI to be used for the GlassFish-AppClient manifest entry in the facade.StringappLibraryExtensions()protected Set<Artifacts.FullAndPartURIs>clientLevelDownloads()protected voidcopyFileToTopLevelJAR(OutputJarArchive clientFacadeArchive, File f, String path)Adds a file to the EAR-level group facade JAR.voidcreateAndAddLibraryJNLPs(AppClientDeployerHelper helper, TokenHelper tHelper, Map<String,DynamicContent> dynamicContent)Set<Artifacts.FullAndPartURIs>earLevelDownloads()protected StringfacadeClassPath()Returns the class path to be stored in the manifest for the generated facade JAR file.protected StringfacadeFileNameAndType(DeploymentContext dc)Returns the file name (and type) for the facade, excluding any directory information.URIfacadeServerURI(DeploymentContext dc)Returns the URI to the server's copy of the facade JAR file.URIfacadeUserURI(DeploymentContext dc)Returns the URI for the facade JAR, relative to the download directory to which the user will fetch the relevant JARs (either as part of "deploy --retrieve" or "get-client-stubs."FixedContentfixedContentWithinEAR(String uriString)Returns a FixedContent object for the file, within the EAR, at the specified relative location.URIgroupFacadeServerURI(DeploymentContext dc)URIgroupFacadeUserURI(DeploymentContext dc)Returns the URI for the group facade JAR, relative to the download directory to which the user will fetch the relevant JARs (either as part of "deploy --retrieve" or "get-client-stubs."StringpathToAppclientWithinApp(DeploymentContext dc)Returns the relative path to the app client within the enclosing app.protected voidprepareJARs()protected StringPUScanTargets()FilerootForSignedFilesInApp()Returns the root directory for signed files in the applications.ApplicationSignedJARManagersignedJARManager()Map<String,Map<URI,StaticContent>>signingAliasToJar()URIURIWithinAppDir(DeploymentContext dc, URI absoluteURI)Returns a relative URI within the app directory for the specified absolute URI.-
Methods inherited from class org.glassfish.appclient.server.core.AppClientDeployerHelper
appClientDesc, appName, appName, clientName, dc, generateAppClientFacade, openByteCodeStream, relativeURIToGroupFacade
-
-
-
-
Method Detail
-
prepareJARs
protected void prepareJARs() throws IOException, URISyntaxException- Overrides:
prepareJARsin classAppClientDeployerHelper- Throws:
IOExceptionURISyntaxException
-
addTopLevelContentToClientFacade
protected void addTopLevelContentToClientFacade(OutputJarArchive facadeArchive) throws IOException
- Specified by:
addTopLevelContentToClientFacadein classAppClientDeployerHelper- Throws:
IOException
-
fixedContentWithinEAR
public FixedContent fixedContentWithinEAR(String uriString)
Description copied from class:AppClientDeployerHelperReturns a FixedContent object for the file, within the EAR, at the specified relative location.- Specified by:
fixedContentWithinEARin classAppClientDeployerHelper- Parameters:
uriString- relative path within the EAR- Returns:
- FixedContent object for the file
-
appLibraryExtensions
public String appLibraryExtensions()
-
signingAliasToJar
public Map<String,Map<URI,StaticContent>> signingAliasToJar()
- Overrides:
signingAliasToJarin classAppClientDeployerHelper
-
createAndAddLibraryJNLPs
public void createAndAddLibraryJNLPs(AppClientDeployerHelper helper, TokenHelper tHelper, Map<String,DynamicContent> dynamicContent) throws IOException
- Specified by:
createAndAddLibraryJNLPsin classAppClientDeployerHelper- Throws:
IOException
-
earLevelDownloads
public Set<Artifacts.FullAndPartURIs> earLevelDownloads()
- Specified by:
earLevelDownloadsin classAppClientDeployerHelper
-
rootForSignedFilesInApp
public File rootForSignedFilesInApp()
Description copied from class:AppClientDeployerHelperReturns the root directory for signed files in the applications.- Specified by:
rootForSignedFilesInAppin classAppClientDeployerHelper- Returns:
- File object for the signed JAR root directory
-
signedJARManager
public ApplicationSignedJARManager signedJARManager()
- Overrides:
signedJARManagerin classAppClientDeployerHelper
-
copyFileToTopLevelJAR
protected void copyFileToTopLevelJAR(OutputJarArchive clientFacadeArchive, File f, String path) throws IOException
Adds a file to the EAR-level group facade JAR.- Specified by:
copyFileToTopLevelJARin classAppClientDeployerHelper- Parameters:
clientFacadeArchive- - ignored for nested app clients- Throws:
IOException
-
addClientPolicyFiles
protected void addClientPolicyFiles(OutputJarArchive clientFacadeArchive) throws IOException
Description copied from class:AppClientDeployerHelperAdds the client policy files to the top-level generated JAR.For a stand-alone client (not in an EAR) this implementation adds the policy files to the generated app client facade JAR.
- Overrides:
addClientPolicyFilesin classAppClientDeployerHelper- Parameters:
clientFacadeArchive- the generated app client facade JAR- Throws:
IOException
-
facadeServerURI
public URI facadeServerURI(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI to the server's copy of the facade JAR file.- Specified by:
facadeServerURIin classAppClientDeployerHelper- Parameters:
dc- the deployment context for the current deployment- Returns:
-
clientLevelDownloads
protected Set<Artifacts.FullAndPartURIs> clientLevelDownloads() throws IOException
- Specified by:
clientLevelDownloadsin classAppClientDeployerHelper- Throws:
IOException
-
facadeClassPath
protected String facadeClassPath()
Description copied from class:AppClientDeployerHelperReturns the class path to be stored in the manifest for the generated facade JAR file.- Specified by:
facadeClassPathin classAppClientDeployerHelper- Returns:
-
PUScanTargets
protected String PUScanTargets()
- Specified by:
PUScanTargetsin classAppClientDeployerHelper
-
facadeUserURI
public URI facadeUserURI(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI for the facade JAR, relative to the download directory to which the user will fetch the relevant JARs (either as part of "deploy --retrieve" or "get-client-stubs."- Specified by:
facadeUserURIin classAppClientDeployerHelper- Parameters:
dc- the deployment context for the current deployment- Returns:
-
groupFacadeUserURI
public URI groupFacadeUserURI(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI for the group facade JAR, relative to the download directory to which the user will fetch the relevant JARs (either as part of "deploy --retrieve" or "get-client-stubs."- Specified by:
groupFacadeUserURIin classAppClientDeployerHelper- Parameters:
dc- the deployment context for the current deployment- Returns:
-
groupFacadeServerURI
public URI groupFacadeServerURI(DeploymentContext dc)
- Specified by:
groupFacadeServerURIin classAppClientDeployerHelper
-
facadeFileNameAndType
protected String facadeFileNameAndType(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the file name (and type) for the facade, excluding any directory information.- Specified by:
facadeFileNameAndTypein classAppClientDeployerHelper- Parameters:
dc- the deployment context for the current deployment- Returns:
-
appClientUserURI
public URI appClientUserURI(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI to the developer's original app client JAR within the download directory the user specifies in "deploy --retrieve" or "get-client-stubs."- Specified by:
appClientUserURIin classAppClientDeployerHelper- Returns:
-
appClientUserURIForFacade
public URI appClientUserURIForFacade(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI to be used for the GlassFish-AppClient manifest entry in the facade.- Specified by:
appClientUserURIForFacadein classAppClientDeployerHelper- Returns:
-
appClientServerURI
public URI appClientServerURI(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI to the server's copy of the developer's original app client JAR.- Specified by:
appClientServerURIin classAppClientDeployerHelper- Returns:
-
appClientServerOriginalAnchor
public URI appClientServerOriginalAnchor(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI on the server to the original location of the app client.This is distinct from the appClientServerURI which could be in the generated directory (in the case of a directory deployment, for example). In some cases we need the original location of the app client on the server (for example, to resolve relative references from the app client JAR's manifest Class-Path).
- Specified by:
appClientServerOriginalAnchorin classAppClientDeployerHelper- Returns:
-
appClientURIWithinApp
public URI appClientURIWithinApp(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the URI within the enclosing app of the app client JAR. Stand-alone app clients are considered to lie within an "implied" containing app; the URI for such app clients is just the file name and type. The URI for nested app clients within an EAR is the module URI to the app client.- Specified by:
appClientURIWithinAppin classAppClientDeployerHelper- Returns:
-
URIWithinAppDir
public URI URIWithinAppDir(DeploymentContext dc, URI absoluteURI)
Description copied from class:AppClientDeployerHelperReturns a relative URI within the app directory for the specified absolute URI.- Specified by:
URIWithinAppDirin classAppClientDeployerHelper- Returns:
-
pathToAppclientWithinApp
public String pathToAppclientWithinApp(DeploymentContext dc)
Description copied from class:AppClientDeployerHelperReturns the relative path to the app client within the enclosing app. The result will be an empty string for a stand-alone app clients because it has no such path, in reality. The result will be the relative URI within the EAR for a nested app client.- Specified by:
pathToAppclientWithinAppin classAppClientDeployerHelper- Returns:
-
-