Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information...
revetkn committed Apr 21, 2015
0 parents commit e8ae3b0162194e8b79732fd495520d0e0b0ab3e0
Showing with 9,815 additions and 0 deletions.
  1. +27 −0 .classpath
  2. +2 −0 .gitignore
  3. +23 −0 .project
  4. +5 −0 .settings/org.eclipse.core.resources.prefs
  5. +13 −0 .settings/org.eclipse.jdt.core.prefs
  6. +3 −0 .settings/org.eclipse.jdt.ui.prefs
  7. +4 −0 .settings/org.eclipse.m2e.core.prefs
  8. +202 −0 LICENSE
  9. +124 −0 README.md
  10. +82 −0 pom.xml
  11. +300 −0 src/main/java/com/soklet/classindex/ClassFilter.java
  12. +427 −0 src/main/java/com/soklet/classindex/ClassIndex.java
  13. +49 −0 src/main/java/com/soklet/classindex/IndexAnnotated.java
  14. +58 −0 src/main/java/com/soklet/classindex/IndexSubclasses.java
  15. +433 −0 src/main/java/com/soklet/classindex/processor/ClassIndexProcessor.java
  16. +77 −0 src/main/java/com/soklet/converter/AbstractValueConverter.java
  17. +56 −0 src/main/java/com/soklet/converter/ValueConversionException.java
  18. +49 −0 src/main/java/com/soklet/converter/ValueConverter.java
  19. +161 −0 src/main/java/com/soklet/converter/ValueConverterRegistry.java
  20. +183 −0 src/main/java/com/soklet/converter/ValueConverters.java
  21. +977 −0 src/main/java/com/soklet/json/JSONArray.java
  22. +43 −0 src/main/java/com/soklet/json/JSONException.java
  23. +1,689 −0 src/main/java/com/soklet/json/JSONObject.java
  24. +18 −0 src/main/java/com/soklet/json/JSONString.java
  25. +78 −0 src/main/java/com/soklet/json/JSONStringer.java
  26. +446 −0 src/main/java/com/soklet/json/JSONTokener.java
  27. +327 −0 src/main/java/com/soklet/json/JSONWriter.java
  28. +25 −0 src/main/java/com/soklet/json/package-info.java
  29. +25 −0 src/main/java/com/soklet/util/InstanceProvider.java
  30. +94 −0 src/main/java/com/soklet/util/IoUtils.java
  31. +73 −0 src/main/java/com/soklet/util/LoggingUtils.java
  32. +56 −0 src/main/java/com/soklet/util/PathUtils.java
  33. +33 −0 src/main/java/com/soklet/util/StringUtils.java
  34. +80 −0 src/main/java/com/soklet/util/TypeReference.java
  35. +23 −0 src/main/java/com/soklet/util/package-info.java
  36. +101 −0 src/main/java/com/soklet/web/CachedUrlMapper.java
  37. +426 −0 src/main/java/com/soklet/web/DefaultRequestHandler.java
  38. +93 −0 src/main/java/com/soklet/web/DefaultResponseHandler.java
  39. +288 −0 src/main/java/com/soklet/web/DefaultRouteMatcher.java
  40. +38 −0 src/main/java/com/soklet/web/HttpMethod.java
  41. +50 −0 src/main/java/com/soklet/web/RequestHandler.java
  42. +289 −0 src/main/java/com/soklet/web/ResourcePath.java
  43. +63 −0 src/main/java/com/soklet/web/ResponseHandler.java
  44. +82 −0 src/main/java/com/soklet/web/Route.java
  45. +27 −0 src/main/java/com/soklet/web/RouteMatcher.java
  46. +122 −0 src/main/java/com/soklet/web/RoutingServlet.java
  47. +32 −0 src/main/java/com/soklet/web/annotation/DELETE.java
  48. +32 −0 src/main/java/com/soklet/web/annotation/DefaultValue.java
  49. +36 −0 src/main/java/com/soklet/web/annotation/GET.java
  50. +32 −0 src/main/java/com/soklet/web/annotation/HEAD.java
  51. +32 −0 src/main/java/com/soklet/web/annotation/OPTIONS.java
  52. +32 −0 src/main/java/com/soklet/web/annotation/PATCH.java
  53. +32 −0 src/main/java/com/soklet/web/annotation/POST.java
  54. +32 −0 src/main/java/com/soklet/web/annotation/PUT.java
  55. +32 −0 src/main/java/com/soklet/web/annotation/PathParameter.java
  56. +32 −0 src/main/java/com/soklet/web/annotation/QueryParameter.java
  57. +30 −0 src/main/java/com/soklet/web/annotation/RequestBody.java
  58. +32 −0 src/main/java/com/soklet/web/annotation/RequestCookie.java
  59. +32 −0 src/main/java/com/soklet/web/annotation/RequestHeader.java
  60. +33 −0 src/main/java/com/soklet/web/annotation/Resource.java
  61. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/DELETEs.java
  62. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/GETs.java
  63. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/HEADs.java
  64. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/OPTIONSes.java
  65. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/PATCHes.java
  66. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/POSTs.java
  67. +34 −0 src/main/java/com/soklet/web/annotation/repeatable/PUTs.java
  68. +25 −0 src/main/java/com/soklet/web/deploy/CachedUrlProcessor.java
  69. +306 −0 src/main/java/com/soklet/web/deploy/DeployableArchiveCreator.java
  70. +84 −0 src/main/java/com/soklet/web/deploy/DeploymentPath.java
  71. +52 −0 src/main/java/com/soklet/web/deploy/DeploymentPaths.java
  72. +48 −0 src/main/java/com/soklet/web/deploy/DeploymentProcessExecutionException.java
  73. +78 −0 src/main/java/com/soklet/web/deploy/MavenDeployableArchiveCreator.java
  74. +53 −0 src/main/java/com/soklet/web/exception/BadRequestException.java
  75. +51 −0 src/main/java/com/soklet/web/exception/IllegalPathParameterException.java
  76. +51 −0 src/main/java/com/soklet/web/exception/IllegalQueryParameterException.java
  77. +45 −0 src/main/java/com/soklet/web/exception/MethodNotAllowedException.java
  78. +36 −0 src/main/java/com/soklet/web/exception/MissingQueryParameterException.java
  79. +29 −0 src/main/java/com/soklet/web/exception/MissingRequestBodyException.java
  80. +23 −0 src/main/java/com/soklet/web/exception/package-info.java
  81. +23 −0 src/main/java/com/soklet/web/package-info.java
  82. +111 −0 src/main/java/com/soklet/web/server/FilterConfiguration.java
  83. +27 −0 src/main/java/com/soklet/web/server/Server.java
  84. +39 −0 src/main/java/com/soklet/web/server/ServerException.java
  85. +89 −0 src/main/java/com/soklet/web/server/ServletConfiguration.java
  86. +69 −0 src/main/java/com/soklet/web/server/StaticFilesConfiguration.java
  87. +1 −0 src/main/resources/META-INF/services/javax.annotation.processing.Processor
  88. +42 −0 src/test/java/com/soklet/web/ResourcePathTests.java
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
@@ -0,0 +1,2 @@
/.apt_generated/
/target/
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Soklet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,5 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
@@ -0,0 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
org.eclipse.jdt.ui.javadoc=false
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright (c) 2015 Transmogrify LLC.\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions\:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author &lt;a href\="http\://revetkn.com"&gt;Mark Allen&lt;/a&gt;\n * @since 1.0.0\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
Oops, something went wrong.

0 comments on commit e8ae3b0

Please sign in to comment.
You can’t perform that action at this time.