/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package org.arquillian.container.liferay.remote;

import org.jboss.arquillian.container.osgi.karaf.remote.KarafRemoteContainerConfiguration;

/**
 * @author Carlos Sierra Andrés
 */
public class LiferayRemoteContainerConfiguration
	extends KarafRemoteContainerConfiguration {

	public static final String DEFAULT_HTTP_HOST = "localhost";

	public static final int DEFAULT_HTTP_PORT = 8080;

	public static final String DEFAULT_JMX_PASSWORD = "";

	public static final String DEFAULT_JMX_SERVICE_URL =
		"service:jmx:rmi:///jndi/rmi://localhost:8099/jmxrmi";

	public static final String DEFAULT_JMX_USERNAME = "";

	public String getHttpHost() {
		return httpHost;
	}

	public int getHttpPort() {
		return httpPort;
	}

	@Override
	public boolean isAutostartBundle() {
		return true;
	}

	public void setHttpHost(String httpHost) {
		this.httpHost = httpHost;
	}

	public void setHttpPort(int httpPort) {
		this.httpPort = httpPort;
	}

	@Override
	public void validate() {
		if (httpHost == null) {
			setHttpHost(DEFAULT_HTTP_HOST);
		}

		if (httpPort == null) {
			setHttpPort(DEFAULT_HTTP_PORT);
		}

		if (jmxServiceURL == null) {
			setJmxServiceURL(DEFAULT_JMX_SERVICE_URL);
		}

		if (jmxUsername == null) {
			setJmxUsername(DEFAULT_JMX_USERNAME);
		}

		if (jmxPassword == null) {
			setJmxPassword(DEFAULT_JMX_PASSWORD);
		}
	}

	private String httpHost;
	private Integer httpPort;

}
@@ -883,32 +883,40 @@
 ic final String 
+LIFERAY_
 DEFAULT_HTTP_HOS
@@ -958,16 +958,24 @@
 nal int 
+LIFERAY_
 DEFAULT_
@@ -1013,32 +1013,40 @@
 ic final String 
+LIFERAY_
 DEFAULT_JMX_PASS
@@ -1077,32 +1077,40 @@
 ic final String 
+LIFERAY_
 DEFAULT_JMX_SERV
@@ -1205,16 +1205,24 @@
  String 
+LIFERAY_
 DEFAULT_
@@ -1641,16 +1641,24 @@
 ttpHost(
+LIFERAY_
 DEFAULT_
@@ -1715,16 +1715,24 @@
 ttpPort(
+LIFERAY_
 DEFAULT_
@@ -1799,16 +1799,24 @@
 viceURL(
+LIFERAY_
 DEFAULT_
@@ -1885,16 +1885,24 @@
 sername(
+LIFERAY_
 DEFAULT_
@@ -1968,16 +1968,24 @@
 assword(
+LIFERAY_
 DEFAULT_

Use better names