Permalink
Browse files

initial commit

  • Loading branch information...
idelvall committed Jan 29, 2016
0 parents commit c7573cce3a71bed134b332f3550152d87c92d669
Showing with 19,095 additions and 0 deletions.
  1. +14 −0 .gitignore
  2. +9 −0 .travis.yml
  3. +201 −0 LICENSE
  4. +1 −0 Procfile
  5. +53 −0 README.md
  6. +90 −0 pom.xml
  7. +201 −0 rpc-api/LICENSE
  8. +53 −0 rpc-api/README.md
  9. +60 −0 rpc-api/pom.xml
  10. +25 −0 rpc-api/src/main/java/org/brutusin/rpc/Descriptible.java
  11. +31 −0 rpc-api/src/main/java/org/brutusin/rpc/Description.java
  12. +49 −0 rpc-api/src/main/java/org/brutusin/rpc/EnvProperties.java
  13. +35 −0 rpc-api/src/main/java/org/brutusin/rpc/Main.java
  14. +51 −0 rpc-api/src/main/java/org/brutusin/rpc/RpcAction.java
  15. +86 −0 rpc-api/src/main/java/org/brutusin/rpc/RpcComponent.java
  16. +61 −0 rpc-api/src/main/java/org/brutusin/rpc/RpcContext.java
  17. +55 −0 rpc-api/src/main/java/org/brutusin/rpc/Server.java
  18. +73 −0 rpc-api/src/main/java/org/brutusin/rpc/http/Cacheable.java
  19. +72 −0 rpc-api/src/main/java/org/brutusin/rpc/http/CachingInfo.java
  20. +41 −0 rpc-api/src/main/java/org/brutusin/rpc/http/HttpAction.java
  21. +48 −0 rpc-api/src/main/java/org/brutusin/rpc/http/HttpActionContext.java
  22. +74 −0 rpc-api/src/main/java/org/brutusin/rpc/http/SafeAction.java
  23. +34 −0 rpc-api/src/main/java/org/brutusin/rpc/http/StreamResult.java
  24. +39 −0 rpc-api/src/main/java/org/brutusin/rpc/http/UnsafeAction.java
  25. +68 −0 rpc-api/src/main/java/org/brutusin/rpc/spi/ServerRuntime.java
  26. +27 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/InvalidSubscriptionException.java
  27. +42 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/MessageResponse.java
  28. +34 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/Session.java
  29. +95 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/Topic.java
  30. +26 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/WebsocketAction.java
  31. +58 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/WebsocketActionContext.java
  32. +25 −0 rpc-api/src/main/java/org/brutusin/rpc/websocket/WritableSession.java
  33. +201 −0 rpc-demo-standalone/LICENSE
  34. +32 −0 rpc-demo-standalone/README.md
  35. +98 −0 rpc-demo-standalone/pom.xml
  36. +201 −0 rpc-demo-war/LICENSE
  37. +32 −0 rpc-demo-war/README.md
  38. +65 −0 rpc-demo-war/pom.xml
  39. +2 −0 rpc-demo-war/src/main/webapp/META-INF/context.xml
  40. +6 −0 rpc-demo-war/src/main/webapp/WEB-INF/web.xml
  41. +201 −0 rpc-examples/LICENSE
  42. +32 −0 rpc-examples/README.md
  43. +53 −0 rpc-examples/pom.xml
  44. +13 −0 rpc-examples/src/main/java/org/brutusin/demo/ExceptionAction.java
  45. +42 −0 rpc-examples/src/main/java/org/brutusin/demo/FireAction.java
  46. +37 −0 rpc-examples/src/main/java/org/brutusin/demo/HelloAction.java
  47. +17 −0 rpc-examples/src/main/java/org/brutusin/demo/IdempotentUnSafeAction.java
  48. +13 −0 rpc-examples/src/main/java/org/brutusin/demo/RuntimeExceptionAction.java
  49. +13 −0 rpc-examples/src/main/java/org/brutusin/demo/SecurityExceptionAction.java
  50. +37 −0 rpc-examples/src/main/java/org/brutusin/demo/TestTopic.java
  51. +47 −0 rpc-examples/src/main/java/org/brutusin/demo/TopicMessage.java
  52. +11 −0 rpc-examples/src/main/java/org/brutusin/demo/UnSafeAction.java
  53. +14 −0 rpc-examples/src/main/java/org/brutusin/demo/complex/Greeting.java
  54. +43 −0 rpc-examples/src/main/java/org/brutusin/demo/complex/HelloWorldAction.java
  55. +27 −0 rpc-examples/src/main/java/org/brutusin/demo/complex/Person.java
  56. +15 −0 rpc-examples/src/main/java/org/brutusin/demo/http/ConditionalCachedAction.java
  57. +15 −0 rpc-examples/src/main/java/org/brutusin/demo/http/ExpiringCachedAction.java
  58. +29 −0 rpc-examples/src/main/java/org/brutusin/demo/http/HttpAwareAction.java
  59. +20 −0 rpc-examples/src/main/java/org/brutusin/demo/spring/GetDateAction.java
  60. +39 −0 rpc-examples/src/main/java/org/brutusin/demo/streaming/LogoAction.java
  61. +74 −0 rpc-examples/src/main/java/org/brutusin/demo/streaming/LogoActionInput.java
  62. +33 −0 rpc-examples/src/main/java/org/brutusin/demo/streaming/UploadingAction.java
  63. +37 −0 rpc-examples/src/main/java/org/brutusin/demo/streaming/UploadingActionInput.java
  64. +1 −0 rpc-examples/src/main/resources/META-INF/resources/index.jsp
  65. BIN rpc-examples/src/main/resources/brutusin-logo.png
  66. +31 −0 rpc-examples/src/main/resources/brutusin-rpc.xml
  67. +201 −0 rpc-impl/LICENSE
  68. +53 −0 rpc-impl/README.md
  69. +82 −0 rpc-impl/pom.xml
  70. +87 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcConfig.java
  71. +219 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcContextImpl.java
  72. +66 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcInitListener.java
  73. +61 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcRequest.java
  74. +148 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcResponse.java
  75. +77 −0 rpc-impl/src/main/java/org/brutusin/rpc/RpcUtils.java
  76. +42 −0 rpc-impl/src/main/java/org/brutusin/rpc/SpringNames.java
  77. +70 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/DynamicSchemaProviderActionHelper.java
  78. +47 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/DynamicSchemaProviderInput.java
  79. +61 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/ResourceIdInput.java
  80. +42 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/ResourceItem.java
  81. +54 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/SchemaActionHelper.java
  82. +42 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/SchemaActionInput.java
  83. +33 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/ServiceItem.java
  84. +37 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/DynamicSchemaProviderAction.java
  85. +32 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/DynamicSchemaProviderInput.java
  86. +35 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/EnvironmentPopertiesAction.java
  87. +63 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/HttpServiceItem.java
  88. +63 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/HttpServiceListAction.java
  89. +36 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/SchemaAction.java
  90. +31 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/SchemaActionInput.java
  91. +41 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/http/VersionAction.java
  92. +36 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/DynamicSchemaProviderAction.java
  93. +31 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/DynamicSchemaProviderInput.java
  94. +64 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/PublishAction.java
  95. +46 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/PublishActionInput.java
  96. +36 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/SchemaAction.java
  97. +57 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/ServiceListAction.java
  98. +31 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/ServiceSchemaActionInput.java
  99. +44 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/SubscribeAction.java
  100. +32 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/TopicIdInput.java
  101. +35 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/TopicItem.java
  102. +54 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/TopicListAction.java
  103. +42 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/TopicSchemaAction.java
  104. +44 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/UnsubscribeAction.java
  105. +33 −0 rpc-impl/src/main/java/org/brutusin/rpc/actions/websocket/VersionAction.java
  106. +26 −0 rpc-impl/src/main/java/org/brutusin/rpc/exception/InvalidHttpMethodException.java
  107. +30 −0 rpc-impl/src/main/java/org/brutusin/rpc/exception/InvalidRequestException.java
  108. +41 −0 rpc-impl/src/main/java/org/brutusin/rpc/exception/MaxLengthExceededException.java
  109. +55 −0 rpc-impl/src/main/java/org/brutusin/rpc/exception/RpcErrorCode.java
  110. +24 −0 rpc-impl/src/main/java/org/brutusin/rpc/exception/ServiceNotFoundException.java
  111. +102 −0 rpc-impl/src/main/java/org/brutusin/rpc/http/LimitedLengthInputStream.java
  112. +620 −0 rpc-impl/src/main/java/org/brutusin/rpc/http/RpcServlet.java
  113. +115 −0 rpc-impl/src/main/java/org/brutusin/rpc/websocket/SessionImpl.java
  114. +155 −0 rpc-impl/src/main/java/org/brutusin/rpc/websocket/WebsocketEndpoint.java
  115. +474 −0 rpc-impl/src/main/resources/META-INF/resources/rpc/brutusin-rpc.js
  116. +1 −0 rpc-impl/src/main/resources/META-INF/services/org.brutusin.rpc.RpcContext
  117. +8 −0 rpc-impl/src/main/resources/brutusin-rpc-core.xml
  118. +1 −0 rpc-impl/src/main/resources/brutusin-rpc.version
  119. +34 −0 rpc-repo/README.md
  120. BIN rpc-repo/img/example.jpg
  121. +42 −0 rpc-repo/pom.xml
  122. +134 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/brutusin-json-forms-rpc.js
  123. BIN rpc-repo/src/main/resources/META-INF/resources/rpc/repo/img/brutusin-logo_small.png
  124. +266 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/index.jsp
  125. +6 −0 .../src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap-select/css/bootstrap-select.min.css
  126. +8 −0 ...po/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap-select/js/bootstrap-select.min.js
  127. +7 −0 ...src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap-select/js/i18n/defaults-en_US.min.js
  128. +56 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/css/bootstrap-callouts.css
  129. +1 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/css/bootstrap-theme.css.map
  130. +5 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/css/bootstrap-theme.min.css
  131. +1 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/css/bootstrap.css.map
  132. +5 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/css/bootstrap.min.css
  133. BIN ...c/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/fonts/glyphicons-halflings-regular.eot
  134. +288 −0 ...c/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/fonts/glyphicons-halflings-regular.svg
  135. BIN ...c/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf
  136. BIN .../main/resources/META-INF/resources/rpc/repo/lib/bootstrap/fonts/glyphicons-halflings-regular.woff
  137. BIN ...main/resources/META-INF/resources/rpc/repo/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2
  138. +7 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/bootstrap/js/bootstrap.min.js
  139. +334 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/codemirror/css/codemirror.css
  140. +710 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/codemirror/js/codemirror-javascript.js
  141. +8,840 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/codemirror/js/codemirror.js
  142. +5 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/jquery/js/jquery.min.js
  143. +1 −0 ...epo/src/main/resources/META-INF/resources/rpc/repo/lib/json-forms/css/brutusin-json-forms.min.css
  144. +1 −0 ...main/resources/META-INF/resources/rpc/repo/lib/json-forms/js/brutusin-json-forms-bootstrap.min.js
  145. +1 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/json-forms/js/brutusin-json-forms.min.js
  146. +1 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/lib/markdown/js/markdown.min.js
  147. +224 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/list.jspf
  148. +227 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/service.jspf
  149. +90 −0 rpc-repo/src/main/resources/META-INF/resources/rpc/repo/topic.jspf
  150. +201 −0 rpc-tomcat/LICENSE
  151. +25 −0 rpc-tomcat/README.md
  152. +87 −0 rpc-tomcat/pom.xml
  153. +157 −0 rpc-tomcat/src/main/java/org/brutusin/rpc/TomcatRuntime.java
  154. +7 −0 rpc-tomcat/src/main/resources/META-INF/resources/rpc/test/topic.jsp
  155. +1 −0 rpc-tomcat/src/main/resources/META-INF/services/org.brutusin.rpc.spi.ServerRuntime
  156. +1 −0 system.properties
@@ -0,0 +1,14 @@
+*.class
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.ear
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+target/
+nbactions.xml
@@ -0,0 +1,9 @@
+language: java
+branches:
+ only:
+ - master
+jdk:
+ - oraclejdk8
+ - oraclejdk7
+ - openjdk7
+ - openjdk6
201 LICENSE
@@ -0,0 +1,201 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2015 Ignacio del Valle Alles
+
+ 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.
@@ -0,0 +1 @@
+web: sh target/bin/webapp
@@ -0,0 +1,53 @@
+#org.brutusin:rpc [![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Build Status](https://api.travis-ci.org/brutusin/rpc.svg?branch=master)](https://travis-ci.org/brutusin/rpc) [![Maven Central Latest Version](https://maven-badges.herokuapp.com/maven-central/org.brutusin/rpc/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.brutusin/rpc/)
+
+`org.brutusin:rpc` is a JEE web framework for creating thin server architectures in [Single-page applications](https://en.wikipedia.org/wiki/Single-page_application), and offering:
+
+1. JSON-RPC 2.0 over HTTP
+2. JSON-RPC 2.0 over websockets
+3. Messaging (publish/subscribe) over websockets
+
+## Full Documentation
+
+See the [Wiki](https://github.com/brutusin/rpc/wiki) for full documentation, examples, operational details and other information.
+
+## Quick start. Code and test!
+
+Run this java application:
+```java
+import org.brutusin.rpc.Server;
+import org.brutusin.rpc.websocket.WebsocketAction;
+
+public class HelloAction extends WebsocketAction<String, String> {
+
+ @Override
+ public String execute(String input) throws Exception {
+ return "Hello " + input + "!";
+ }
+
+ public static void main(String[] args) throws Exception {
+ Server.test(new HelloAction());
+ }
+}
+```
+and automatically your browser will be openend with a functional testing client for the newly created service:
+
+![Service testing client](doc/img/service-test.png)
+
+## Status
+This project is an evolution of https://github.com/brutusin/jsonsrv. Documentation in progress
+
+## Live demo
+http://demo.rpc.brutusin.org
+
+## Support, bugs and requests
+https://github.com/brutusin/rpc/issues
+
+## Authors
+
+- Ignacio del Valle Alles (<https://github.com/idelvall/>)
+
+Contributions are always welcome and greatly appreciated!
+
+##License
+Apache License, Version 2.0
+http://www.apache.org/licenses/LICENSE-2.0
90 pom.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.brutusin</groupId>
+ <artifactId>brutusin</artifactId>
+ <version>1.0.5</version>
+ </parent>
+ <groupId>org.brutusin</groupId>
+ <artifactId>rpc-root</artifactId>
+ <packaging>pom</packaging>
+ <version>1.2.1-SNAPSHOT</version>
+ <name>${project.groupId}:${project.artifactId}</name>
+ <description>Brutusin-RPC parent module</description>
+ <url>https://github.com/brutusin/rpc</url>
+
+ <issueManagement>
+ <system>GitHub Issues</system>
+ <url>https://github.com/brutusin/rpc/issues</url>
+ </issueManagement>
+
+ <ciManagement>
+ <system>travis-ci</system>
+ <url>https://travis-ci.org/brutusin/rpc</url>
+ </ciManagement>
+
+ <scm>
+ <url>https://github.com/brutusin/rpc</url>
+ <connection>scm:git:https://github.com/brutusin/rpc.git</connection>
+ <developerConnection>scm:git:https://github.com/brutusin/rpc.git</developerConnection>
+ <tag>HEAD</tag>
+ </scm>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.brutusin</groupId>
+ <artifactId>commons</artifactId>
+ <version>1.4.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.brutusin</groupId>
+ <artifactId>json</artifactId>
+ <version>1.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.brutusin</groupId>
+ <artifactId>json-provider</artifactId>
+ <version>2.2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>4.1.4.RELEASE</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aop</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>net.jodah</groupId>
+ <artifactId>typetools</artifactId>
+ <version>0.4.4</version>
+ </dependency>
+ <dependency>
+ <groupId>javax</groupId>
+ <artifactId>javaee-web-api</artifactId>
+ <version>7.0</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <modules>
+ <module>rpc-api</module>
+ <module>rpc-impl</module>
+ <module>rpc-repo</module>
+ <module>rpc-tomcat</module>
+ <module>rpc-examples</module>
+ <module>rpc-demo-standalone</module>
+ <module>rpc-demo-war</module>
+ </modules>
+
+</project>
Oops, something went wrong.

0 comments on commit c7573cc

Please sign in to comment.