Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Sudibya
IF3230-Tugas-Besar-Sister-2015
Commits
7102dd8a
Commit
7102dd8a
authored
Apr 26, 2015
by
Jonathan Sudibya
Browse files
Server Status Done
parent
1e104926
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/TCPServer/src/Model/MessageProcessor.java
View file @
7102dd8a
...
...
@@ -5,11 +5,12 @@
*/
package
Model
;
import
Controller.
DBHandler
;
import
static
Controller
.
ConnectionHandler
.
serverList
;
import
Method.EndpointMethod
;
import
java.security.NoSuchAlgorithmException
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
org.json.simple.JSONArray
;
import
org.json.simple.JSONObject
;
/**
...
...
@@ -91,6 +92,9 @@ public final class MessageProcessor {
System
.
out
.
println
(
"BELUM!"
);
break
;
}
case
"serverStatus"
:
{
serverList
=
(
JSONArray
)
data
.
get
(
"value"
);
}
default
:
{
//senderror
response
=
EndpointMethod
.
statusError
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment