/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 
 */
package org.ocelotds;

/**
 * Constants Class
 *
 * @author hhfrancois
 */
public interface Constants {

	String UTF_8 = "UTF-8";
	String JS = ".js";
	String MIN = "-min";
	String SLASH = "/";
	String BACKSLASH_N = "\n";
	String LOCALE = "LOCALE";

	String OCELOT = "ocelot";
	String OCELOT_CORE = OCELOT+"-core";
	String OCELOT_MIN = OCELOT+MIN;
	String SLASH_OCELOT_JS = SLASH+OCELOT+JS;
	
	String MINIFY_PARAMETER = "minify";
	String JSTYPE = "text/javascript;charset=UTF-8";
	String FALSE = "false";
	String TRUE = "true";
	
	/**
	 * This string will be replaced by the contextPath in ocelot-core.js
	 */
	String CTXPATH = "%CTXPATH%";
	
	interface Options {

		String STACKTRACE = "ocelot.stacktrace.length";
	}

	interface Message {

		String ID = "id";
		String TYPE = "type";
		String DATASERVICE = "ds";
		String OPERATION = "op";
		String ARGUMENTS = "args";
		String ARGUMENTNAMES = "argNames";
		String DEADLINE = "deadline";
		String RESPONSE = "response";
		String SUBSCRIPTION = "subscription";
		String UNSUBSCRIPTION = "unsubscription";

		interface Fault {

			String MESSAGE = "message";
			String CLASSNAME = "classname";
			String STACKTRACE = "stacktrace";

		}
	}

	interface Resolver {

		String POJO = "pojo";
		String CDI = "cdi";
		String EJB = "ejb";
		String SPRING = "spring";
	}

	interface Cache {

		String CLEANCACHE_TOPIC = "ocelot-cleancache";
		String ALL = "ALL";
		String USE_ALL_ARGUMENTS = "*";
		String ARGS_NOT_CONSIDERATED = "-";
	}
}

@@ -504,17 +504,19 @@
 = OCELOT
-+
+ + 
 %22-core%22;
@@ -543,17 +543,19 @@
 = OCELOT
-+
+ + 
 MIN;%0A%09St
@@ -586,21 +586,24 @@
 LASH
-+
+ + 
 OCELOT
-+
+ + 
 JS;%0A
-%09
 %0A%09St
@@ -734,18 +734,17 @@
 %22true%22;%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -850,10 +850,9 @@
 %25%22;%0A
-%09
 %0A
+
 %09int
@@ -919,24 +919,132 @@
 ength%22;%0A%09%7D%0A%0A
+%09interface Topic %7B%0A%0A%09%09String SUBSCRIPTION = %22subscription%22;%0A%09%09String UNSUBSCRIPTION = %22unsubscription%22;%0A%09%7D%0A%0A
 %09interface M
@@ -1247,24 +1247,24 @@
 %22deadline%22;%0A
+
 %09%09String RES
@@ -1286,92 +1286,8 @@
 se%22;
-%0A%09%09String SUBSCRIPTION = %22subscription%22;%0A%09%09String UNSUBSCRIPTION = %22unsubscription%22;
 %0A%0A%09%09

move Constants