Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 54666e01
authored
Jan 11, 2018
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup old BortalLocalContextHolder commands
1 parent
6589f3e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
code/moya-web/src/main/java/fi/codecrew/moya/servlet/BortalCommand.java
code/moya-web/src/main/java/fi/codecrew/moya/servlet/BortalCommand.java
View file @
54666e0
...
@@ -91,8 +91,7 @@ public class BortalCommand implements Command, Runnable {
...
@@ -91,8 +91,7 @@ public class BortalCommand implements Command, Runnable {
@Override
@Override
public
void
run
()
{
public
void
run
()
{
BortalLocalContextHolder
.
copy
(
contextHolder
);
BortalLocalContextHolder
.
copy
(
contextHolder
);
BortalLocalContextHolder
.
getInstance
().
executeLogin
();
try
{
try
{
logger
.
info
(
"Created new bortalCommane"
);
logger
.
info
(
"Created new bortalCommane"
);
outstream
.
write
(
"Hello you..."
);
outstream
.
write
(
"Hello you..."
);
...
@@ -113,7 +112,7 @@ public class BortalCommand implements Command, Runnable {
...
@@ -113,7 +112,7 @@ public class BortalCommand implements Command, Runnable {
outstream
.
flush
();
outstream
.
flush
();
returnValue
=
parseCommand
(
cmdBuilder
.
toString
());
returnValue
=
parseCommand
(
cmdBuilder
.
toString
());
outstream
.
write
(
"["
+
returnValue
+
"] "
+
BortalLocalContextHolder
.
getInstance
().
getLoginContext
().
getSubject
().
getPrincipals
().
iterator
().
next
().
getName
()
+
" # "
);
//
outstream.write("[" + returnValue + "] " + BortalLocalContextHolder.getInstance().getLoginContext().getSubject().getPrincipals().iterator().next().getName() + " # ");
outstream
.
flush
();
outstream
.
flush
();
cmdBuilder
=
new
StringBuilder
();
cmdBuilder
=
new
StringBuilder
();
...
@@ -134,7 +133,6 @@ public class BortalCommand implements Command, Runnable {
...
@@ -134,7 +133,6 @@ public class BortalCommand implements Command, Runnable {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
BortalLocalContextHolder
.
getInstance
().
executeLogout
();
exitCallback
.
onExit
(
3
);
exitCallback
.
onExit
(
3
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment