public void setResourceAction(String resourceAction) { if(resourceAction != null) { setProperty(RESOURCE_ACTION, resourceAction); } }
public String getName(String filePath) { return getProperty(NAME, getDefaultComponentName(filePath)); }
public DeploymentProperties(Properties props) { super(); putAll(props); }
private static Properties getDeployActionProperties( File deployablefile, boolean enabled, String virtualServer, boolean forceDeploy, boolean verify, boolean jspPreCompilation, String target){ DeploymentProperties dProps = new DeploymentProperties(); dProps.setPath(deployablefile.getAbsolutePath()); // dProps.setUpload(false); dProps.setEnabled(enabled); if (virtualServer != null) { dProps.setVirtualServers(virtualServer); } dProps.setForce(forceDeploy); dProps.setVerify(verify); dProps.setPrecompileJSP(jspPreCompilation); // dProps.setResourceAction(DeploymentProperties.RES_DEPLOYMENT); // dProps.setResourceTargetList(target); dProps.setProperty(DeploymentProperties.LOG_REPORTED_ERRORS, "false"); return (Properties)dProps; } }
/** * This set of get and set for WSDL_TARGET_HINT is to enable back generate WSDL with the host and port info of the * actual server target in case only one target has been specified by the client; Refer to bug ID 6157923 for more * details */ public String getWsdlTargetHint() throws IllegalArgumentException { return getProperty(WSDL_TARGET_HINT, null); }
private Properties prepareUndeployActionProperties(String archiveName, String target) { DeploymentProperties dProps = new DeploymentProperties(); // we need to find the application registration name // which is not always the same as archive name String appName = archiveName; List<Application> applications = apps.getApplications(); for (Application app : applications) { String defaultAppName = app.getDeployProperties().getProperty (DeploymentProperties.DEFAULT_APP_NAME); if (defaultAppName != null && defaultAppName.equals(archiveName)) { appName = app.getName(); } } dProps.setName(appName); // dProps.setResourceAction(DeploymentProperties.RES_UNDEPLOYMENT); // dProps.setResourceTargetList(target); return (Properties)dProps; }
public String getDefaultContextRoot(String filePath) { return getDefaultComponentName(filePath); }
public Properties prune() { /*Properties propsCopy = props.clone();*/ remove(FORCE); remove(RELOAD); remove(CONTEXT_ROOT); remove(PRECOMPILE_JSP); remove(VERIFY); remove(ENABLED); remove(VIRTUAL_SERVERS); remove(NAME); remove(TYPE); remove(ARCHIVE_NAME); remove(CASCADE); remove(REDEPLOY); remove(GENERATE_RMI_STUBS); remove(AVAILABILITY_ENABLED); remove(DEPLOY_OPTION_JAVA_WEB_START_ENABLED_KEY); remove(DEPLOY_OPTION_LIBRARIES_KEY); remove(RESOURCE_ACTION); remove(RESOURCE_TARGET_LIST); remove(UPLOAD); remove(EXTERNALLY_MANAGED); return this; }
public String getPath() { return getProperty(PATH); } public boolean getExternallyManaged() {
public void setWsdlTargetHint(String target) { if(target != null) { setProperty(WSDL_TARGET_HINT, target); } }
public String getTarget() throws IllegalArgumentException { return getProperty(TARGET, null); }
public DeploymentProperties(Map map) { super(); if (map == null) { return; } Properties props = new Properties(); for (Iterator itr = map.keySet().iterator(); itr.hasNext();) { String mapKey = (String) itr.next(); String mapValue = (String) map.get(mapKey); String propsKey = (String) keyMap.get(mapKey); if (mapValue != null) { // for public keys, we need to convert if (propsKey != null) { props.put(propsKey, mapValue); } // for internal keys and new keys, we just add it // without conversion else { props.put(mapKey, mapValue); } } } putAll(props); }
public void setLibraries(String libraries) { if(libraries != null) { setProperty(DEPLOY_OPTION_LIBRARIES_KEY, libraries); } }
public String getDescription() { return getProperty(DESCRIPTION, ""); }
public void setResourceTargetList(String resTargetList) { if(resTargetList != null) { setProperty(RESOURCE_TARGET_LIST, resTargetList); } }
public String getResourceTargetList() { return getProperty(RESOURCE_TARGET_LIST, null ); }
public void setContextRoot(String contextRoot) { if(contextRoot != null) setProperty(CONTEXT_ROOT, contextRoot); }
public String getContextRoot() { return getProperty(CONTEXT_ROOT, null); }
public void setVirtualServers(String virtualServers) { if(virtualServers != null) setProperty(VIRTUAL_SERVERS, virtualServers); }
public String getVirtualServers() { return getProperty(VIRTUAL_SERVERS , DEFAULT_VIRTUAL_SERVERS); }