@Service @Singleton public class JWSAdapterManager extends Object implements org.glassfish.hk2.api.PostConstruct
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_STARTING_SYSTEM_ADAPTER |
| Constructor and Description |
|---|
JWSAdapterManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContentForAppClient(String appName,
String clientURIWithinEAR,
AppClientServerApplication contributor,
Properties tokens,
Map<String,StaticContent> staticContent,
Map<String,DynamicContent> dynamicContent)
Adds content on behalf of a single app client to the HTTP adapters
for the client and/or the containing EAR.
|
AutoSignedContent |
appLevelSignedSystemContent(String relativePathToSystemJar,
String alias) |
String |
contextRootForAppAdapter(String appName) |
void |
postConstruct() |
void |
removeContentForAppClient(String appName,
String clientURIWithinEAR,
AppClientServerApplication contributor) |
static String |
signingAlias(DeploymentContext dc) |
static String |
userFriendlyContextRoot(AppClientServerApplication contributor) |
static String |
userFriendlyContextRoot(ApplicationClientDescriptor acDesc,
Properties p) |
public static final String ERROR_STARTING_SYSTEM_ADAPTER
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic static String signingAlias(DeploymentContext dc)
public void addContentForAppClient(String appName, String clientURIWithinEAR, AppClientServerApplication contributor, Properties tokens, Map<String,StaticContent> staticContent, Map<String,DynamicContent> dynamicContent) throws EndpointRegistrationException, IOException
This method always creates at least one adapter for the client - one to receive requests for the user-friendly context path. (This is the path either assigned by the developer or defaulted by the server based on the application name and, for clients nested within an EAR, the URI to the app client within the EAR.) This adapter will only serve the main generated JNLP document. All other accesses to files that can be downloaded will use the "user-unfriendly" context path.
For stand-alone app clients it also creates an adapter for the "user-unfriendly" context path. This serves all content other than the main JNLP document.
For nested app clients this method will either create or reuse an adapter which serves content for the EAR. This includes content specific to the app client being added as well as for library JARs, etc. that could be common to more than one app client.
appName - contributor - tokens - staticContent - dynamicContent - EndpointRegistrationExceptionIOExceptionpublic static String userFriendlyContextRoot(AppClientServerApplication contributor)
public static String userFriendlyContextRoot(ApplicationClientDescriptor acDesc, Properties p)
public AutoSignedContent appLevelSignedSystemContent(String relativePathToSystemJar, String alias) throws FileNotFoundException
FileNotFoundExceptionpublic void removeContentForAppClient(String appName, String clientURIWithinEAR, AppClientServerApplication contributor) throws EndpointRegistrationException
EndpointRegistrationExceptionCopyright © 2017. All rights reserved.