Ändrat default värde för age från 0 till 20 (om det inte anges)
Showing
10 changed files
with
15 additions
and
16 deletions
... | @@ -3,15 +3,11 @@ | ... | @@ -3,15 +3,11 @@ |
3 | <classpathentry kind="src" path="src"/> | 3 | <classpathentry kind="src" path="src"/> |
4 | <classpathentry combineaccessrules="false" kind="src" path="/LILOM Library"/> | 4 | <classpathentry combineaccessrules="false" kind="src" path="/LILOM Library"/> |
5 | <classpathentry combineaccessrules="false" kind="src" path="/LILJM Library"/> | 5 | <classpathentry combineaccessrules="false" kind="src" path="/LILJM Library"/> |
6 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | ||
7 | <attributes> | ||
8 | <attribute name="owner.project.facets" value="java"/> | ||
9 | </attributes> | ||
10 | </classpathentry> | ||
11 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | 6 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
12 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | 7 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
13 | <classpathentry kind="lib" path="lib/javax.servlet.jar"/> | 8 | <classpathentry kind="lib" path="lib/javax.servlet.jar"/> |
14 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jar"/> | 9 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jar"/> |
15 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jstl.jar"/> | 10 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jstl.jar"/> |
11 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> | ||
16 | <classpathentry kind="output" path="build/classes"/> | 12 | <classpathentry kind="output" path="build/classes"/> |
17 | </classpath> | 13 | </classpath> | ... | ... |
... | @@ -8,4 +8,5 @@ org.eclipse.jdt.core.compiler.debug.localVariable=generate | ... | @@ -8,4 +8,5 @@ org.eclipse.jdt.core.compiler.debug.localVariable=generate |
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate | 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
11 | org.eclipse.jdt.core.compiler.release=disabled | ||
11 | org.eclipse.jdt.core.compiler.source=1.7 | 12 | org.eclipse.jdt.core.compiler.source=1.7 | ... | ... |
No preview for this file type
... | @@ -36,7 +36,7 @@ public class JmxMonRESTgetData extends HttpServlet { | ... | @@ -36,7 +36,7 @@ public class JmxMonRESTgetData extends HttpServlet { |
36 | response.setContentType("application/json"); | 36 | response.setContentType("application/json"); |
37 | try { | 37 | try { |
38 | StringBuffer sb = new StringBuffer(); | 38 | StringBuffer sb = new StringBuffer(); |
39 | int age = 0; | 39 | int age = 20; |
40 | if(request.getParameterMap().containsKey("age")) { | 40 | if(request.getParameterMap().containsKey("age")) { |
41 | try { | 41 | try { |
42 | age = Integer.parseInt(request.getParameter("age")); | 42 | age = Integer.parseInt(request.getParameter("age")); | ... | ... |
... | @@ -35,7 +35,7 @@ public class OraMonRESTgetData extends HttpServlet { | ... | @@ -35,7 +35,7 @@ public class OraMonRESTgetData extends HttpServlet { |
35 | response.setContentType("application/json"); | 35 | response.setContentType("application/json"); |
36 | try { | 36 | try { |
37 | StringBuffer sb = new StringBuffer(); | 37 | StringBuffer sb = new StringBuffer(); |
38 | int age = 0; | 38 | int age = 20; |
39 | if(request.getParameterMap().containsKey("age")) { | 39 | if(request.getParameterMap().containsKey("age")) { |
40 | try { | 40 | try { |
41 | age = Integer.parseInt(request.getParameter("age")); | 41 | age = Integer.parseInt(request.getParameter("age")); | ... | ... |
... | @@ -35,7 +35,7 @@ public class OraMonRESTgetPrometheus extends HttpServlet { | ... | @@ -35,7 +35,7 @@ public class OraMonRESTgetPrometheus extends HttpServlet { |
35 | response.setContentType("application/json"); | 35 | response.setContentType("application/json"); |
36 | try { | 36 | try { |
37 | StringBuffer sb = new StringBuffer(); | 37 | StringBuffer sb = new StringBuffer(); |
38 | int age = 0; | 38 | int age = 20; |
39 | if(request.getParameterMap().containsKey("age")) { | 39 | if(request.getParameterMap().containsKey("age")) { |
40 | try { | 40 | try { |
41 | age = Integer.parseInt(request.getParameter("age")); | 41 | age = Integer.parseInt(request.getParameter("age")); | ... | ... |
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <classpath> | 2 | <classpath> |
3 | <classpathentry kind="src" path=""/> | 3 | <classpathentry kind="src" path=""/> |
4 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> | 4 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> |
5 | <classpathentry kind="output" path=""/> | 5 | <classpathentry kind="output" path=""/> |
6 | </classpath> | 6 | </classpath> | ... | ... |
1 | eclipse.preferences.version=1 | 1 | eclipse.preferences.version=1 |
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 |
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
5 | org.eclipse.jdt.core.compiler.compliance=1.6 | 5 | org.eclipse.jdt.core.compiler.compliance=1.8 |
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate | 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate | 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate |
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate | 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
11 | org.eclipse.jdt.core.compiler.source=1.6 | 11 | org.eclipse.jdt.core.compiler.release=disabled |
12 | org.eclipse.jdt.core.compiler.source=1.8 | ... | ... |
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <classpath> | 2 | <classpath> |
3 | <classpathentry kind="src" path=""/> | 3 | <classpathentry kind="src" path=""/> |
4 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
5 | <classpathentry kind="lib" path="lib/ojdbc8.jar"/> | 4 | <classpathentry kind="lib" path="lib/ojdbc8.jar"/> |
5 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
6 | <classpathentry kind="output" path=""/> | 6 | <classpathentry kind="output" path=""/> |
7 | </classpath> | 7 | </classpath> | ... | ... |
1 | eclipse.preferences.version=1 | 1 | eclipse.preferences.version=1 |
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 |
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
5 | org.eclipse.jdt.core.compiler.compliance=1.6 | 5 | org.eclipse.jdt.core.compiler.compliance=1.8 |
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate | 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate | 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate |
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate | 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
11 | org.eclipse.jdt.core.compiler.source=1.6 | 11 | org.eclipse.jdt.core.compiler.release=disabled |
12 | org.eclipse.jdt.core.compiler.source=1.8 | ... | ... |
-
Please register or sign in to post a comment