Skip to content
Browse files

project restructuring

  • Loading branch information...
1 parent 550d4ec commit a4e9391cc1f3cf9c5054a81f496032fcb5c6f450 @alextkachman alextkachman committed
Showing with 259 additions and 144 deletions.
  1. +40 −51 build.gradle
  2. +25 −0 gretty-hazelcast/build.gradle
  3. +28 −0 gretty/build.gradle
  4. +165 −0 gretty/gretty.iml
  5. +0 −1 { → gretty}/src/META-INF/services/org.mbte.groovypp.compiler.Extensions
  6. 0 { → gretty}/src/META-INF/socket.io/FABridge.js
  7. 0 { → gretty}/src/META-INF/socket.io/WebSocketMain.swf
  8. 0 { → gretty}/src/META-INF/socket.io/json.js
  9. 0 { → gretty}/src/META-INF/socket.io/sample.html
  10. 0 { → gretty}/src/META-INF/socket.io/socket.io.js
  11. 0 { → gretty}/src/META-INF/socket.io/swfobject.js
  12. 0 { → gretty}/src/META-INF/socket.io/web_socket.js
  13. 0 { → gretty}/src/org/mbte/gretty/AbstractClient.groovy
  14. 0 { → gretty}/src/org/mbte/gretty/AbstractServer.groovy
  15. 0 { → gretty}/src/org/mbte/gretty/JacksonCategory.groovy
  16. 0 { → gretty}/src/org/mbte/gretty/httpclient/AbstractClientHandler.groovy
  17. 0 { → gretty}/src/org/mbte/gretty/httpclient/AbstractHttpClient.groovy
  18. 0 { → gretty}/src/org/mbte/gretty/httpclient/AbstractHttpClientHandler.groovy
  19. 0 { → gretty}/src/org/mbte/gretty/httpclient/GrettyClient.groovy
  20. 0 { → gretty}/src/org/mbte/gretty/httpclient/GrettyWebsocketClient.groovy
  21. 0 { → gretty}/src/org/mbte/gretty/httpclient/HttpClientPool.groovy
  22. 0 { → gretty}/src/org/mbte/gretty/httpclient/HttpRequestHelper.groovy
  23. 0 { → gretty}/src/org/mbte/gretty/httpclient/LoadGenerator.groovy
  24. 0 { → gretty}/src/org/mbte/gretty/httpserver/FileWriteHandler.groovy
  25. 0 { → gretty}/src/org/mbte/gretty/httpserver/FlashPolicyFileHandler.groovy
  26. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyAppHandler.groovy
  27. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyAsyncFunction.groovy
  28. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyContext.groovy
  29. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyHttpHandler.groovy
  30. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyHttpRequest.groovy
  31. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyHttpResponse.groovy
  32. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyIoSocketHandler.groovy
  33. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyProxy.groovy
  34. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyProxyClient.groovy
  35. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyPublicDescription.groovy
  36. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyRequestDecoder.groovy
  37. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyRequestEncoder.groovy
  38. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyResponseDecoder.groovy
  39. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyResponseEncoder.groovy
  40. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyRestDescription.groovy
  41. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyServer.groovy
  42. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyWebSocketEvent.groovy
  43. 0 { → gretty}/src/org/mbte/gretty/httpserver/GrettyWebSocketHandler.groovy
  44. 0 { → gretty}/src/org/mbte/gretty/httpserver/HttpChunkedStream.groovy
  45. 0 { → gretty}/src/org/mbte/gretty/httpserver/HttpLoggingHandler.groovy
  46. 0 { → gretty}/src/org/mbte/gretty/httpserver/IoMonitor.groovy
  47. 0 { → gretty}/src/org/mbte/gretty/httpserver/SocketIO.groovy
  48. 0 { → gretty}/src/org/mbte/gretty/httpserver/session/GrettySession.groovy
  49. 0 { → gretty}/src/org/mbte/gretty/httpserver/session/GrettySessionManager.groovy
  50. 0 { → gretty}/src/org/mbte/gretty/httpserver/session/InMemorySessionManager.groovy
  51. 0 { → gretty}/src/org/mbte/gretty/httpserver/template/GrettyTemplateEngine.groovy
  52. 0 { → gretty}/src/org/mbte/gretty/httpserver/template/GrettyTemplateScript.groovy
  53. 0 { → gretty}/src/org/mbte/gretty/json/JsonBuilder.groovy
  54. 0 { → gretty}/src/org/mbte/gretty/memserver/Command.groovy
  55. 0 { → gretty}/src/org/mbte/gretty/memserver/GET.groovy
  56. 0 { → gretty}/src/org/mbte/gretty/memserver/MapClient.groovy
  57. 0 { → gretty}/src/org/mbte/gretty/memserver/MapServer.groovy
  58. 0 { → gretty}/src/org/mbte/gretty/memserver/SET.groovy
  59. 0 { → gretty}/src/org/mbte/gretty/pubsub/Publisher.groovy
  60. 0 { → gretty}/src/org/mbte/gretty/pubsub/Subscriber.groovy
  61. 0 { → gretty}/src/org/mbte/gretty/pubsub/SubscriptionNode.groovy
  62. 0 { → gretty}/src/org/mbte/gretty/remote/ClientConnector.groovy
  63. 0 { → gretty}/src/org/mbte/gretty/remote/ClusterClient.groovy
  64. 0 { → gretty}/src/org/mbte/gretty/remote/ClusterDiscoveryListener.groovy
  65. 0 { → gretty}/src/org/mbte/gretty/remote/ClusterNode.groovy
  66. 0 { → gretty}/src/org/mbte/gretty/remote/ClusterServer.groovy
  67. 0 { → gretty}/src/org/mbte/gretty/remote/RemoteClusterNode.groovy
  68. 0 { → gretty}/src/org/mbte/gretty/remote/RemoteConnectionHandler.groovy
  69. 0 { → gretty}/src/org/mbte/gretty/remote/RemoteMessage.groovy
  70. 0 { → gretty}/src/org/mbte/gretty/remote/WithRemoteId.groovy
  71. 0 { → gretty}/src/org/mbte/gretty/remote/inet/InetDiscoveryInfo.groovy
  72. 0 { → gretty}/src/org/mbte/gretty/remote/inet/MulticastChannel.groovy
  73. 0 { → gretty}/tests/org/mbte/gretty/httpserver/Base64Test.groovy
  74. 0 { → gretty}/tests/org/mbte/gretty/httpserver/ContextTest.groovy
  75. 0 { → gretty}/tests/org/mbte/gretty/httpserver/CookiesTest.groovy
  76. 0 { → gretty}/tests/org/mbte/gretty/httpserver/GrettyServerTestCase.groovy
  77. 0 { → gretty}/tests/org/mbte/gretty/httpserver/HttpClientPoolTest.groovy
  78. 0 { → gretty}/tests/org/mbte/gretty/httpserver/JsonTest.groovy
  79. 0 { → gretty}/tests/org/mbte/gretty/httpserver/Performance.groovy
  80. 0 { → gretty}/tests/org/mbte/gretty/httpserver/ProxyTest.groovy
  81. 0 { → gretty}/tests/org/mbte/gretty/httpserver/RedirectTest.groovy
  82. 0 { → gretty}/tests/org/mbte/gretty/httpserver/RestTest.groovy
  83. 0 { → gretty}/tests/org/mbte/gretty/httpserver/ServerTest.groovy
  84. 0 { → gretty}/tests/org/mbte/gretty/httpserver/SessionsTest.groovy
  85. 0 { → gretty}/tests/org/mbte/gretty/httpserver/TemplateTest.groovy
  86. 0 { → gretty}/tests/org/mbte/gretty/httpserver/WebSocketTest.groovy
  87. 0 { → gretty}/tests/org/mbte/gretty/remote/ClusterTest.groovy
  88. 0 { → gretty}/tests/org/mbte/gretty/remote/PublisherTest.groovy
  89. 0 { → gretty}/tests/org/mbte/gretty/remote/RemoteChannelTest.groovy
  90. +0 −1 gridgain/gridgain.iml
  91. +1 −1 settings.gradle
  92. +0 −90 src/org/mbte/gretty/ServletCategory.groovy
View
91 build.gradle
@@ -14,71 +14,60 @@
* limitations under the License.
*/
-apply plugin: 'groovy'
apply plugin: 'idea'
-apply plugin: 'maven'
-group = 'org.mbte.groovypp'
-version = '0.4.261'
+subprojects {
+ apply plugin: 'groovy'
+ apply plugin: 'idea'
+ apply plugin: 'maven'
-def gppVersion = '0.4.261_1.8.0'
+ group = 'org.mbte.groovypp'
+ version = '0.4.262'
+ gppVersion = '0.4.261_1.8.0'
-repositories {
- mavenCentral ()
+ repositories {
+ mavenCentral ()
- mavenRepo urls: new File("${System.getProperty('user.home')}/.m2/repository").toURL().toString()
- mavenRepo urls: 'http://groovypp.artifactoryonline.com/groovypp/libs-releases-local/'
+ mavenRepo urls: new File("${System.getProperty('user.home')}/.m2/repository").toURL().toString()
+ mavenRepo urls: 'http://groovypp.artifactoryonline.com/groovypp/libs-releases-local/'
- mavenRepo urls: 'http://repository.jboss.org/nexus/content/groups/public/'
-}
-
-dependencies {
- groovy group: 'org.codehaus.groovy', name: 'groovy', version: "1.8.0"
- compile group: 'org.mbte.groovypp', name: 'groovypp', version: "$gppVersion"
-
- compile group: 'org.jboss.netty', name: 'netty', version: '3.2.4.Final'
- compile(group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.6.1')
-// compile(group: 'org.freemarker', name: 'freemarker', version: '2.3.16')
- compile(group: 'javax.servlet', name: 'servlet-api', version: '2.5')
-
- testCompile(group: 'junit', name: 'junit', version: '4.8.1')
-
- testRuntime(group: 'commons-cli', name: 'commons-cli', version: '1.1')
-}
+ mavenRepo urls: 'http://repository.jboss.org/nexus/content/groups/public/'
+ }
-sourceSets {
- main {
- groovy {
- srcDir 'src'
+ sourceSets {
+ main {
+ groovy {
+ srcDir 'src'
+ }
+ resources {
+ srcDirs 'src'
+ }
}
- resources {
- srcDirs 'src'
+
+ test {
+ groovy {
+ srcDir 'tests'
+ }
}
}
- test {
- groovy {
- srcDir 'tests'
- }
+ task sourcesJar(type: Jar, dependsOn:classes) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
}
-}
-
-task sourcesJar(type: Jar, dependsOn:classes) {
- classifier = 'sources'
- from sourceSets.main.allSource
-}
-artifacts {
- archives sourcesJar
-}
+ artifacts {
+ archives sourcesJar
+ }
-uploadArchives {
- repositories.mavenDeployer {
- def repo = "http://groovypp.artifactoryonline.com/groovypp/libs-releases-local/"
- if(System.getProperty("repo") == 'local')
- repo = 'file://' + new File(System.getProperty('user.home'), ".m2${File.separatorChar}repository").absolutePath
- repository(url: repo) {
- authentication(userName: ARTIFACTORY_USER, password: ARTIFACTORY_PASSWORD)
+ uploadArchives {
+ repositories.mavenDeployer {
+ def repo = "http://groovypp.artifactoryonline.com/groovypp/libs-releases-local/"
+ if(System.getProperty("repo") == 'local')
+ repo = 'file://' + new File(System.getProperty('user.home'), ".m2${File.separatorChar}repository").absolutePath
+ repository(url: repo) {
+ authentication(userName: ARTIFACTORY_USER, password: ARTIFACTORY_PASSWORD)
+ }
}
}
}
View
25 gretty-hazelcast/build.gradle
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2009-2010 MBTE Sweden AB.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+dependsOn ':gretty'
+
+dependencies {
+ groovy group: 'org.codehaus.groovy', name: 'groovy', version: "1.8.0"
+
+ compile project(':gretty')
+
+ testCompile(group: 'junit', name: 'junit', version: '4.8.1')
+}
View
28 gretty/build.gradle
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2009-2010 MBTE Sweden AB.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+dependencies {
+ groovy group: 'org.codehaus.groovy', name: 'groovy', version: "1.8.0"
+ compile group: 'org.mbte.groovypp', name: 'groovypp', version: "$gppVersion"
+
+ compile group: 'org.jboss.netty', name: 'netty', version: '3.2.4.Final'
+ compile(group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.6.1')
+
+ testCompile(group: 'junit', name: 'junit', version: '4.8.1')
+
+ testRuntime(group: 'commons-cli', name: 'commons-cli', version: '1.1')
+}
+
View
165 gretty/gretty.iml
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="true" type="JAVA_MODULE" version="4">
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/build/classes/main" />
+ <output-test url="file://$MODULE_DIR$/build/classes/test" />
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/groovy" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/test/groovy" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />
+ <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
+ <excludeFolder url="file://$MODULE_DIR$/.gradle" />
+ <excludeFolder url="file://$MODULE_DIR$/build" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.mbte.groovypp/groovypp/jars/groovypp-0.4.261_1.8.0.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.mbte.groovypp/groovypp/sources/groovypp-0.4.261_1.8.0-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.groovy/groovy/jars/groovy-1.8.0.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.groovy/groovy/sources/groovy-1.8.0-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/antlr/antlr/jars/antlr-2.7.7.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/asm/asm/jars/asm-3.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/asm/asm-commons/jars/asm-commons-3.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/asm/asm-tree/jars/asm-tree-3.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/asm/asm-util/jars/asm-util-3.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/asm/asm-analysis/jars/asm-analysis-3.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/junit/junit/jars/junit-4.8.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/junit/junit/sources/junit-4.8.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.jboss.netty/netty/bundles/netty-3.2.4.Final.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.jboss.netty/netty/sources/netty-3.2.4.Final-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.6.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.jackson/jackson-mapper-asl/sources/jackson-mapper-asl-1.6.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.6.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/org.codehaus.jackson/jackson-core-asl/sources/jackson-core-asl-1.6.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" scope="TEST">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/commons-cli/commons-cli/jars/commons-cli-1.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/commons-cli/commons-cli/sources/commons-cli-1.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" scope="TEST">
+ <library>
+ <CLASSES>
+ <root url="jar://$USER_HOME$/.gradle/cache/junit/junit/jars/junit-4.8.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$USER_HOME$/.gradle/cache/junit/junit/sources/junit-4.8.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ </component>
+</module>
+
View
1 ...ces/org.mbte.groovypp.compiler.Extensions → ...ces/org.mbte.groovypp.compiler.Extensions
@@ -1,2 +1 @@
-org.mbte.gretty.ServletCategory
org.mbte.gretty.JacksonCategory
View
0 src/META-INF/socket.io/FABridge.js → gretty/src/META-INF/socket.io/FABridge.js
File renamed without changes.
View
0 src/META-INF/socket.io/WebSocketMain.swf → .../src/META-INF/socket.io/WebSocketMain.swf
File renamed without changes.
View
0 src/META-INF/socket.io/json.js → gretty/src/META-INF/socket.io/json.js
File renamed without changes.
View
0 src/META-INF/socket.io/sample.html → gretty/src/META-INF/socket.io/sample.html
File renamed without changes.
View
0 src/META-INF/socket.io/socket.io.js → gretty/src/META-INF/socket.io/socket.io.js
File renamed without changes.
View
0 src/META-INF/socket.io/swfobject.js → gretty/src/META-INF/socket.io/swfobject.js
File renamed without changes.
View
0 src/META-INF/socket.io/web_socket.js → gretty/src/META-INF/socket.io/web_socket.js
File renamed without changes.
View
0 src/org/mbte/gretty/AbstractClient.groovy → ...src/org/mbte/gretty/AbstractClient.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/AbstractServer.groovy → ...src/org/mbte/gretty/AbstractServer.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/JacksonCategory.groovy → ...rc/org/mbte/gretty/JacksonCategory.groovy
File renamed without changes.
View
0 ...y/httpclient/AbstractClientHandler.groovy → ...y/httpclient/AbstractClientHandler.groovy
File renamed without changes.
View
0 ...etty/httpclient/AbstractHttpClient.groovy → ...etty/httpclient/AbstractHttpClient.groovy
File renamed without changes.
View
0 ...tpclient/AbstractHttpClientHandler.groovy → ...tpclient/AbstractHttpClientHandler.groovy
File renamed without changes.
View
0 ...bte/gretty/httpclient/GrettyClient.groovy → ...bte/gretty/httpclient/GrettyClient.groovy
File renamed without changes.
View
0 ...y/httpclient/GrettyWebsocketClient.groovy → ...y/httpclient/GrettyWebsocketClient.groovy
File renamed without changes.
View
0 ...e/gretty/httpclient/HttpClientPool.groovy → ...e/gretty/httpclient/HttpClientPool.groovy
File renamed without changes.
View
0 ...retty/httpclient/HttpRequestHelper.groovy → ...retty/httpclient/HttpRequestHelper.groovy
File renamed without changes.
View
0 ...te/gretty/httpclient/LoadGenerator.groovy → ...te/gretty/httpclient/LoadGenerator.groovy
File renamed without changes.
View
0 ...gretty/httpserver/FileWriteHandler.groovy → ...gretty/httpserver/FileWriteHandler.groovy
File renamed without changes.
View
0 .../httpserver/FlashPolicyFileHandler.groovy → .../httpserver/FlashPolicyFileHandler.groovy
File renamed without changes.
View
0 ...gretty/httpserver/GrettyAppHandler.groovy → ...gretty/httpserver/GrettyAppHandler.groovy
File renamed without changes.
View
0 ...tty/httpserver/GrettyAsyncFunction.groovy → ...tty/httpserver/GrettyAsyncFunction.groovy
File renamed without changes.
View
0 ...te/gretty/httpserver/GrettyContext.groovy → ...te/gretty/httpserver/GrettyContext.groovy
File renamed without changes.
View
0 ...retty/httpserver/GrettyHttpHandler.groovy → ...retty/httpserver/GrettyHttpHandler.groovy
File renamed without changes.
View
0 ...retty/httpserver/GrettyHttpRequest.groovy → ...retty/httpserver/GrettyHttpRequest.groovy
File renamed without changes.
View
0 ...etty/httpserver/GrettyHttpResponse.groovy → ...etty/httpserver/GrettyHttpResponse.groovy
File renamed without changes.
View
0 ...y/httpserver/GrettyIoSocketHandler.groovy → ...y/httpserver/GrettyIoSocketHandler.groovy
File renamed without changes.
View
0 ...mbte/gretty/httpserver/GrettyProxy.groovy → ...mbte/gretty/httpserver/GrettyProxy.groovy
File renamed without changes.
View
0 ...retty/httpserver/GrettyProxyClient.groovy → ...retty/httpserver/GrettyProxyClient.groovy
File renamed without changes.
View
0 ...httpserver/GrettyPublicDescription.groovy → ...httpserver/GrettyPublicDescription.groovy
File renamed without changes.
View
0 ...ty/httpserver/GrettyRequestDecoder.groovy → ...ty/httpserver/GrettyRequestDecoder.groovy
File renamed without changes.
View
0 ...ty/httpserver/GrettyRequestEncoder.groovy → ...ty/httpserver/GrettyRequestEncoder.groovy
File renamed without changes.
View
0 ...y/httpserver/GrettyResponseDecoder.groovy → ...y/httpserver/GrettyResponseDecoder.groovy
File renamed without changes.
View
0 ...y/httpserver/GrettyResponseEncoder.groovy → ...y/httpserver/GrettyResponseEncoder.groovy
File renamed without changes.
View
0 ...y/httpserver/GrettyRestDescription.groovy → ...y/httpserver/GrettyRestDescription.groovy
File renamed without changes.
View
0 ...bte/gretty/httpserver/GrettyServer.groovy → ...bte/gretty/httpserver/GrettyServer.groovy
File renamed without changes.
View
0 ...ty/httpserver/GrettyWebSocketEvent.groovy → ...ty/httpserver/GrettyWebSocketEvent.groovy
File renamed without changes.
View
0 .../httpserver/GrettyWebSocketHandler.groovy → .../httpserver/GrettyWebSocketHandler.groovy
File renamed without changes.
View
0 ...retty/httpserver/HttpChunkedStream.groovy → ...retty/httpserver/HttpChunkedStream.groovy
File renamed without changes.
View
0 ...etty/httpserver/HttpLoggingHandler.groovy → ...etty/httpserver/HttpLoggingHandler.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/httpserver/IoMonitor.groovy → ...g/mbte/gretty/httpserver/IoMonitor.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/httpserver/SocketIO.groovy → ...rg/mbte/gretty/httpserver/SocketIO.groovy
File renamed without changes.
View
0 ...y/httpserver/session/GrettySession.groovy → ...y/httpserver/session/GrettySession.groovy
File renamed without changes.
View
0 ...erver/session/GrettySessionManager.groovy → ...erver/session/GrettySessionManager.groovy
File renamed without changes.
View
0 ...ver/session/InMemorySessionManager.groovy → ...ver/session/InMemorySessionManager.groovy
File renamed without changes.
View
0 ...rver/template/GrettyTemplateEngine.groovy → ...rver/template/GrettyTemplateEngine.groovy
File renamed without changes.
View
0 ...rver/template/GrettyTemplateScript.groovy → ...rver/template/GrettyTemplateScript.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/json/JsonBuilder.groovy → ...c/org/mbte/gretty/json/JsonBuilder.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/memserver/Command.groovy → .../org/mbte/gretty/memserver/Command.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/memserver/GET.groovy → .../src/org/mbte/gretty/memserver/GET.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/memserver/MapClient.groovy → ...rg/mbte/gretty/memserver/MapClient.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/memserver/MapServer.groovy → ...rg/mbte/gretty/memserver/MapServer.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/memserver/SET.groovy → .../src/org/mbte/gretty/memserver/SET.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/pubsub/Publisher.groovy → ...c/org/mbte/gretty/pubsub/Publisher.groovy
File renamed without changes.
View
0 src/org/mbte/gretty/pubsub/Subscriber.groovy → .../org/mbte/gretty/pubsub/Subscriber.groovy
File renamed without changes.
View
0 ...bte/gretty/pubsub/SubscriptionNode.groovy → ...bte/gretty/pubsub/SubscriptionNode.groovy
File renamed without changes.
View
0 ...mbte/gretty/remote/ClientConnector.groovy → ...mbte/gretty/remote/ClientConnector.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/remote/ClusterClient.groovy → ...g/mbte/gretty/remote/ClusterClient.groovy
File renamed without changes.
View
0 ...ty/remote/ClusterDiscoveryListener.groovy → ...ty/remote/ClusterDiscoveryListener.groovy
File renamed without changes.
View
0 ...org/mbte/gretty/remote/ClusterNode.groovy → ...org/mbte/gretty/remote/ClusterNode.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/remote/ClusterServer.groovy → ...g/mbte/gretty/remote/ClusterServer.groovy
File renamed without changes.
View
0 ...te/gretty/remote/RemoteClusterNode.groovy → ...te/gretty/remote/RemoteClusterNode.groovy
File renamed without changes.
View
0 ...tty/remote/RemoteConnectionHandler.groovy → ...tty/remote/RemoteConnectionHandler.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/remote/RemoteMessage.groovy → ...g/mbte/gretty/remote/RemoteMessage.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/remote/WithRemoteId.groovy → ...rg/mbte/gretty/remote/WithRemoteId.groovy
File renamed without changes.
View
0 ...etty/remote/inet/InetDiscoveryInfo.groovy → ...etty/remote/inet/InetDiscoveryInfo.groovy
File renamed without changes.
View
0 ...retty/remote/inet/MulticastChannel.groovy → ...retty/remote/inet/MulticastChannel.groovy
File renamed without changes.
View
0 .../mbte/gretty/httpserver/Base64Test.groovy → .../mbte/gretty/httpserver/Base64Test.groovy
File renamed without changes.
View
0 ...mbte/gretty/httpserver/ContextTest.groovy → ...mbte/gretty/httpserver/ContextTest.groovy
File renamed without changes.
View
0 ...mbte/gretty/httpserver/CookiesTest.groovy → ...mbte/gretty/httpserver/CookiesTest.groovy
File renamed without changes.
View
0 ...ty/httpserver/GrettyServerTestCase.groovy → ...ty/httpserver/GrettyServerTestCase.groovy
File renamed without changes.
View
0 ...etty/httpserver/HttpClientPoolTest.groovy → ...etty/httpserver/HttpClientPoolTest.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/httpserver/JsonTest.groovy → ...rg/mbte/gretty/httpserver/JsonTest.groovy
File renamed without changes.
View
0 ...mbte/gretty/httpserver/Performance.groovy → ...mbte/gretty/httpserver/Performance.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/httpserver/ProxyTest.groovy → ...g/mbte/gretty/httpserver/ProxyTest.groovy
File renamed without changes.
View
0 ...bte/gretty/httpserver/RedirectTest.groovy → ...bte/gretty/httpserver/RedirectTest.groovy
File renamed without changes.
View
0 ...rg/mbte/gretty/httpserver/RestTest.groovy → ...rg/mbte/gretty/httpserver/RestTest.groovy
File renamed without changes.
View
0 .../mbte/gretty/httpserver/ServerTest.groovy → .../mbte/gretty/httpserver/ServerTest.groovy
File renamed without changes.
View
0 ...bte/gretty/httpserver/SessionsTest.groovy → ...bte/gretty/httpserver/SessionsTest.groovy
File renamed without changes.
View
0 ...bte/gretty/httpserver/TemplateTest.groovy → ...bte/gretty/httpserver/TemplateTest.groovy
File renamed without changes.
View
0 ...te/gretty/httpserver/WebSocketTest.groovy → ...te/gretty/httpserver/WebSocketTest.groovy
File renamed without changes.
View
0 ...org/mbte/gretty/remote/ClusterTest.groovy → ...org/mbte/gretty/remote/ClusterTest.groovy
File renamed without changes.
View
0 ...g/mbte/gretty/remote/PublisherTest.groovy → ...g/mbte/gretty/remote/PublisherTest.groovy
File renamed without changes.
View
0 ...te/gretty/remote/RemoteChannelTest.groovy → ...te/gretty/remote/RemoteChannelTest.groovy
File renamed without changes.
View
1 gridgain/gridgain.iml
@@ -7,7 +7,6 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="module" module-name="gretty" />
<orderEntry type="library" name="GridGain 3.0.9" level="project" />
</component>
</module>
View
2 settings.gradle
@@ -1 +1 @@
-//include 'Examples:chat'
+include 'gretty', 'gretty-hazelcast'
View
90 src/org/mbte/gretty/ServletCategory.groovy
@@ -1,90 +0,0 @@
-/*
- * Copyright 2009-2010 MBTE Sweden AB.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.mbte.gretty
-
-import javax.servlet.http.HttpSession
-import javax.servlet.ServletConfig
-import org.jboss.netty.buffer.ChannelBuffer
-import org.jboss.netty.buffer.ChannelBuffers
-
-/**
- * Extension methods for classes of servlet framework
- */
-@Typed class ServletCategory {
- /**
- * Allows array-like syntax to access session attributes
- *
- * @param session
- * @param name
- * @return
- */
- static def getAt(HttpSession session, String name) {
- session.getAttribute(name)
- }
-
- /**
- * Allows array-like syntax to access session attributes
- *
- * @param session
- * @param name
- * @param value
- * @return
- */
- static void putAt(HttpSession session, String name, def value) {
- session.setAttribute(name, value)
- }
-
- /**
- * Allows property-like syntax to access session attributes
- *
- * @param session
- * @param name
- * @return
- */
- static def getUnresolvedProperty(HttpSession session, String name) {
- session.getAttribute(name)
- }
-
- /**
- * Allows property-like syntax to access session attributes
- *
- * @param session
- * @param name
- * @param value
- */
- static void setUnresolvedProperty(HttpSession session, String name, Object value) {
- session.setAttribute(name, value)
- }
-
- /**
- * Property-like access to initial parameters of ServletConfig
- *
- * @param config
- * @param name
- * @return
- */
- static String getUnresolvedProperty(ServletConfig config, String name) {
- config.getInitParameter(name)
- }
-
- static String asString(ChannelBuffer cb) {
- new String(cb.array(), cb.arrayOffset(), cb.readableBytes(), "UTF-8")
- }
-
- static ChannelBuffer asChannelBuffer(String str) {
- ChannelBuffers.copiedBuffer(str, "UTF-8")
- }
-}

0 comments on commit a4e9391

Please sign in to comment.
Something went wrong with that request. Please try again.