本文整理汇总了Java中org.eclipse.wst.server.core.IServerType.getId方法的典型用法代码示例。如果您正苦于以下问题:Java IServerType.getId方法的具体用法?Java IServerType.getId怎么用?Java IServerType.getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.wst.server.core.IServerType
的用法示例。
在下文中一共展示了IServerType.getId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doesServerBelongToHost
import org.eclipse.wst.server.core.IServerType; //导入方法依赖的package包/类
public static boolean doesServerBelongToHost(IServer server, IHost host) {
if (host != null && server != null) {
IRSESystemType rseSystem = host.getSystemType();
IServerType serverType = server.getServerType();
if (rseSystem != null) {
String hostSystemType = rseSystem.getId();
if (serverType != null && serverType.getId() != null) {
String serverSystemType = CloudFoundryBrandingExtensionPoint.getRemoteSystemTypeId(serverType.getId());
return (hostSystemType != null && hostSystemType.equals(serverSystemType));
}
}
}
return false;
}
示例2: isCloudFoundryServerType
import org.eclipse.wst.server.core.IServerType; //导入方法依赖的package包/类
/**
* Check if the server type is a Cloud Foundry-based server type
* @param serverType
* @return true if it is a Cloud Foundry server type
*/
public static boolean isCloudFoundryServerType(IServerType serverType) {
if (serverType != null) {
String serverId = serverType.getId();
return CloudFoundryBrandingExtensionPoint.getServerTypeIds().contains(serverId);
}
return false;
}
示例3: isCloudFoundryServerType
import org.eclipse.wst.server.core.IServerType; //导入方法依赖的package包/类
/**
* Check if the server type is a Cloud Foundry-based server type
* @param serverType
* @return true if it is a Cloud Foundry server type
*/
public static boolean isCloudFoundryServerType(IServerType serverType) {
if (serverType != null) {
String serverId = serverType.getId();
return DockerFoundryBrandingExtensionPoint.getServerTypeIds().contains(serverId);
}
return false;
}