本文整理了Java中com.sun.enterprise.config.serverbeans.Application.getContextRoot()
方法的一些代码示例,展示了Application.getContextRoot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getContextRoot()
方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Application
类名称:Application
方法名:getContextRoot
[英]Gets the value of the contextRoot property.
[中]获取contextRoot属性的值。
代码示例来源:origin: org.glassfish.main.admin/config-api
public String getContextRoot(String moduleID) {
ApplicationName module = getModule(moduleID);
if (module == null) {
return null;
}
if (module instanceof Application) {
return ((Application)module).getContextRoot();
} else {
return null;
}
}
代码示例来源:origin: org.glassfish.admin/config-api
public static String getContextRoot(String moduleID) {
ApplicationName module = getModule(moduleID);
if (module == null) {
return null;
}
if (module instanceof Application) {
return ((Application)module).getContextRoot();
} else if (module instanceof WebModule) {
return ((WebModule)module).getContextRoot();
} else {
return null;
}
}
代码示例来源:origin: org.glassfish.admin/config-api
public static Properties getDeployProperties(Application instance) {
Properties deploymentProps = new Properties();
for (Property prop : instance.getProperty()) {
deploymentProps.put(prop.getName(), prop.getValue());
}
deploymentProps.setProperty(ServerTags.OBJECT_TYPE,
instance.getObjectType());
if (instance.getContextRoot() != null) {
deploymentProps.setProperty(ServerTags.CONTEXT_ROOT,
instance.getContextRoot());
}
if (instance.getDirectoryDeployed() != null) {
deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED,
instance.getDirectoryDeployed());
}
return deploymentProps;
}
代码示例来源:origin: org.glassfish.main.admin/config-api
public static Properties getDeployProperties(Application instance) {
Properties deploymentProps = new Properties();
for (Property prop : instance.getProperty()) {
if (prop.getValue() != null) {
deploymentProps.put(prop.getName(), prop.getValue());
}
}
if (instance.getObjectType() != null) {
deploymentProps.setProperty(ServerTags.OBJECT_TYPE,
instance.getObjectType());
}
if (instance.getContextRoot() != null) {
deploymentProps.setProperty(ServerTags.CONTEXT_ROOT,
instance.getContextRoot());
}
if (instance.getDirectoryDeployed() != null) {
deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED,
instance.getDirectoryDeployed());
}
return deploymentProps;
}
代码示例来源:origin: org.glassfish.admin/config-api
deploymentParams.enabled = Boolean.FALSE;
deploymentParams.contextroot = app.getContextRoot();
deploymentParams.libraries = app.getLibraries();
deploymentParams.availabilityenabled = Boolean.parseBoolean(app.getAvailabilityEnabled());
代码示例来源:origin: org.glassfish.deployment/deployment-admin
if (app.getContextRoot() != null) {
this.previousContextRoot = app.getContextRoot();
代码示例来源:origin: org.glassfish.main.admin/config-api
deploymentParams.enabled = Boolean.FALSE;
deploymentParams.contextroot = app.getContextRoot();
deploymentParams.libraries = app.getLibraries();
deploymentParams.availabilityenabled = Boolean.parseBoolean(app.getAvailabilityEnabled());
代码示例来源:origin: fujitsu/launcher
if (app.getContextRoot() != null) {
this.previousContextRoot = app.getContextRoot();
代码示例来源:origin: org.glassfish.main.admin/config-api
String appName = app.getName();
String contextRoot = app.getContextRoot();
if (isSameApp(appName, application.getName())) {
} else if ((application.getContextRoot()!=null) && application.getContextRoot().equals(contextRoot)) {
内容来源于网络,如有侵权,请联系作者删除!