public class StandaloneAppClientDeployerHelper extends AppClientDeployerHelper
The facade JAR file - ${appName}Client.jar - will reside at the top of the user's local directory and will refer to the developer's original app client JAR which will reside in the ${appName}Client subdirectory within the user's download directory.
AppClientDeployerHelper.ProxyACC_MAIN_LOGGER, archivist, LOG_MESSAGE_RESOURCE| Modifier and Type | Method and Description |
|---|---|
protected void |
addTopLevelContentToClientFacade(OutputJarArchive facadeArchive) |
URI |
appClientServerOriginalAnchor(DeploymentContext dc)
Returns the URI on the server to the original location of the app client.
|
URI |
appClientServerURI(DeploymentContext dc)
Returns the URI to the server
|
URI |
appClientURIWithinApp(DeploymentContext dc)
Returns the URI for the app client within the artificial containing
app.
|
URI |
appClientUserURI(DeploymentContext dc)
Returns the URI for the developer's original app client JAR within the
user's download directory.
|
URI |
appClientUserURIForFacade(DeploymentContext dc)
Returns the URI to be used for the GlassFish-AppClient manifest entry
in the facade.
|
protected Set<Artifacts.FullAndPartURIs> |
clientLevelDownloads() |
protected void |
copyFileToTopLevelJAR(OutputJarArchive clientFacadeArchive,
File f,
String path)
Copies a file's contents to the top-level JAR generated by this
deployment.
|
protected void |
copyOriginalAppClientJAR(DeploymentContext dc) |
void |
createAndAddLibraryJNLPs(AppClientDeployerHelper helper,
TokenHelper tHelper,
Map<String,DynamicContent> dynamicContent) |
Set<Artifacts.FullAndPartURIs> |
earLevelDownloads() |
protected String |
facadeClassPath()
Returns the class path to be stored in the manifest for the
generated facade JAR file.
|
protected String |
facadeFileNameAndType(DeploymentContext dc)
Returns the file name and type of the facade.
|
URI |
facadeServerURI(DeploymentContext dc)
Returns the URI for the generated facade JAR.
|
URI |
facadeUserURI(DeploymentContext dc)
Returns the URI for the facade within the user's download directory.
|
FixedContent |
fixedContentWithinEAR(String uriString)
Returns a FixedContent object for the file, within the EAR, at the
specified relative location.
|
URI |
groupFacadeServerURI(DeploymentContext dc) |
URI |
groupFacadeUserURI(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."
|
String |
pathToAppclientWithinApp(DeploymentContext dc)
Returns the relative path to the app client within the enclosing app.
|
protected void |
prepareJARs() |
protected String |
PUScanTargets() |
File |
rootForSignedFilesInApp()
Returns the root directory for signed files in the applications.
|
URI |
URIWithinAppDir(DeploymentContext dc,
URI absoluteURI)
Returns a relative URI within the app directory for the specified
absolute URI.
|
addClientPolicyFiles, appClientDesc, appName, appName, clientName, dc, generateAppClientFacade, openByteCodeStream, relativeURIToGroupFacade, signedJARManager, signingAliasToJarpublic File rootForSignedFilesInApp()
AppClientDeployerHelperrootForSignedFilesInApp in class AppClientDeployerHelperprotected void prepareJARs()
throws IOException,
URISyntaxException
prepareJARs in class AppClientDeployerHelperIOExceptionURISyntaxExceptionprotected void addTopLevelContentToClientFacade(OutputJarArchive facadeArchive) throws IOException
addTopLevelContentToClientFacade in class AppClientDeployerHelperIOExceptionpublic void createAndAddLibraryJNLPs(AppClientDeployerHelper helper, TokenHelper tHelper, Map<String,DynamicContent> dynamicContent)
createAndAddLibraryJNLPs in class AppClientDeployerHelperprotected void copyFileToTopLevelJAR(OutputJarArchive clientFacadeArchive, File f, String path) throws IOException
copyFileToTopLevelJAR in class AppClientDeployerHelperclientFacadeArchive - f - path - IOExceptionpublic FixedContent fixedContentWithinEAR(String uriString)
AppClientDeployerHelperfixedContentWithinEAR in class AppClientDeployerHelperuriString - relative path within the EARprotected String facadeFileNameAndType(DeploymentContext dc)
For stand-alone app clients, the facade is ${appName}Client.jar.
facadeFileNameAndType in class AppClientDeployerHelperdc - public URI facadeServerURI(DeploymentContext dc)
The facade is ${appName}Client.jar and for stand-alone app clients is stored at generated/xml/${appName}/${appName}Client.jar.
facadeServerURI in class AppClientDeployerHelperdc - public URI facadeUserURI(DeploymentContext dc)
The facade for a stand-alone app client will reside at the top level of the user's download directory.
facadeUserURI in class AppClientDeployerHelperdc - public URI groupFacadeUserURI(DeploymentContext dc)
AppClientDeployerHelpergroupFacadeUserURI in class AppClientDeployerHelperdc - the deployment context for the current deploymentpublic URI groupFacadeServerURI(DeploymentContext dc)
groupFacadeServerURI in class AppClientDeployerHelperpublic URI appClientUserURI(DeploymentContext dc)
appClientUserURI in class AppClientDeployerHelperdc - public URI appClientServerURI(DeploymentContext dc)
appClientServerURI in class AppClientDeployerHelperdc - public URI appClientServerOriginalAnchor(DeploymentContext dc)
AppClientDeployerHelperThis 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).
appClientServerOriginalAnchor in class AppClientDeployerHelperpublic URI appClientURIWithinApp(DeploymentContext dc)
appClientURIWithinApp in class AppClientDeployerHelperdc - protected Set<Artifacts.FullAndPartURIs> clientLevelDownloads() throws IOException
clientLevelDownloads in class AppClientDeployerHelperIOExceptionpublic Set<Artifacts.FullAndPartURIs> earLevelDownloads() throws IOException
earLevelDownloads in class AppClientDeployerHelperIOExceptionpublic URI appClientUserURIForFacade(DeploymentContext dc)
AppClientDeployerHelperappClientUserURIForFacade in class AppClientDeployerHelperpublic URI URIWithinAppDir(DeploymentContext dc, URI absoluteURI)
AppClientDeployerHelperURIWithinAppDir in class AppClientDeployerHelperpublic String pathToAppclientWithinApp(DeploymentContext dc)
AppClientDeployerHelperpathToAppclientWithinApp in class AppClientDeployerHelperprotected String facadeClassPath()
AppClientDeployerHelperfacadeClassPath in class AppClientDeployerHelperprotected void copyOriginalAppClientJAR(DeploymentContext dc) throws IOException
IOExceptionprotected String PUScanTargets()
PUScanTargets in class AppClientDeployerHelperCopyright © 2019. All rights reserved.