Example usage for com.liferay.portal.kernel.util ServerDetector WEBSPHERE_ID

List of usage examples for com.liferay.portal.kernel.util ServerDetector WEBSPHERE_ID

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util ServerDetector WEBSPHERE_ID.

Prototype

String WEBSPHERE_ID

To view the source code for com.liferay.portal.kernel.util ServerDetector WEBSPHERE_ID.

Click Source Link

Usage

From source file:org.mimacom.commons.liferay.adapter512.LiferayToolsImpl.java

License:Apache License

static void addExtraContent(String appServerType, StringBuilder content) {
    if (ServerDetector.WEBSPHERE_ID.equals(appServerType)) {
        content.append("<context-param>");
        content.append("<param-name>com.ibm.websphere.portletcontainer.PortletDeploymentEnabled</param-name>");
        content.append("<param-value>false</param-value>");
        content.append("</context-param>");
    }// w w w  .  j  a va 2  s  . c om
}