-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b508150
commit 7e090e9
Showing
15 changed files
with
111 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
naming: | ||
LambdaParameterNaming: | ||
parameterPattern: '_[a-z][A-Za-z0-9]*' | ||
ConstructorParameterNaming: | ||
parameterPattern: '_[a-z][A-Za-z0-9]*' | ||
FunctionParameterNaming: | ||
parameterPattern: '_[a-z][A-Za-z0-9]*' | ||
VariableNaming: | ||
privateVariablePattern: 'm[A-Z][A-Za-z0-9]*' | ||
|
||
exceptions: | ||
TooGenericExceptionCaught: | ||
exceptionNames: [] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import javax.servlet.annotation.WebServlet | ||
import javax.servlet.http.HttpServlet | ||
import javax.servlet.http.HttpServletRequest | ||
import javax.servlet.http.HttpServletResponse | ||
|
||
@WebServlet(name = "HelloWorldServlet", urlPatterns = ["/"]) | ||
class EnvironmentServiceServlet: HttpServlet() { | ||
override fun doGet(_req: HttpServletRequest, _res: HttpServletResponse) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import javax.servlet.annotation.WebServlet | ||
import javax.servlet.http.HttpServlet | ||
import javax.servlet.http.HttpServletRequest | ||
import javax.servlet.http.HttpServletResponse | ||
|
||
@WebServlet(name = "HelloWorldServlet", urlPatterns = ["/"]) | ||
class HelloWorldServlet : HttpServlet() { | ||
var mCalls = 0 | ||
|
||
override fun doGet(_req: HttpServletRequest, _res: HttpServletResponse) { | ||
val defaultHtml = "<body><div>hello world</div></body>"; | ||
_res.contentType = "text/html" | ||
val htmlFile = servletContext.getResource("/WEB-INF/classes/template.html") | ||
?.readText() | ||
?.replace("%counter%", "${++mCalls}") | ||
?: defaultHtml | ||
_res.writer.println(htmlFile) | ||
_res.writer.close() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public class InfoServlet { | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public class SessionServlet { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta name="description" content="Servlet Request Counter"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" > | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | ||
<title>Request Counter</title> | ||
<style> | ||
h1 { | ||
text-align: center; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1 class="badge blue"> | ||
%counter% | ||
</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters