Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isochrone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institut für Informatik
dbis
dbis-isochrone
isochrone
Commits
cee10c49
Commit
cee10c49
authored
11 years ago
by
Nikolaus Krismer
Browse files
Options
Downloads
Patches
Plain Diff
fixed minor checkstyle problems
parent
58bd6fc8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/it/unibz/inf/isoga/web/JsonWebsocket.java
+10
-10
10 additions, 10 deletions
src/main/java/it/unibz/inf/isoga/web/JsonWebsocket.java
with
10 additions
and
10 deletions
src/main/java/it/unibz/inf/isoga/web/JsonWebsocket.java
+
10
−
10
View file @
cee10c49
package
it.unibz.inf.isoga.web
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.MapperFeature
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
it.geosolutions.geoserver.rest.GeoServerRESTPublisher
;
import
it.unibz.inf.isochrone.config.ConfigIsochrone
;
import
it.unibz.inf.isoga.config.ConfigClient
;
...
...
@@ -39,11 +44,6 @@ import javax.websocket.server.ServerEndpoint;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.MapperFeature
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
@ServerEndpoint
(
value
=
"/websocket"
)
public
class
JsonWebsocket
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
JsonWebsocket
.
class
.
getName
());
...
...
@@ -90,10 +90,10 @@ public class JsonWebsocket {
}
@OnError
public
void
onError
(
final
Session
session
,
final
Throwable
throwable
)
{
LOGGER
.
warn
(
"Error for client \""
+
session
.
getId
()
+
"\""
);
throwable
.
printStackTrace
();
}
public
void
onError
(
final
Session
session
,
final
Throwable
throwable
)
{
LOGGER
.
warn
(
"Error for client \""
+
session
.
getId
()
+
"\""
);
throwable
.
printStackTrace
();
}
@OnMessage
public
<
S
extends
IService
<
T
,
U
>,
T
extends
IRequest
,
U
extends
IResponse
>
String
onMessage
(
final
Session
session
,
final
String
message
)
{
...
...
@@ -139,7 +139,7 @@ public class JsonWebsocket {
return
request
;
}
private
static
<
S
extends
IService
<
T
,
U
>,
T
extends
IRequest
,
U
extends
IResponse
>
S
createService
(
final
ObjectMapper
mapper
,
final
String
msg
)
private
static
<
S
extends
IService
<
T
,
U
>,
T
extends
IRequest
,
U
extends
IResponse
>
S
createService
(
final
ObjectMapper
mapper
,
final
String
msg
)
throws
IllegalRequestException
,
InternalSocketException
{
final
boolean
emptyRequest
=
(
msg
==
null
||
msg
.
trim
().
length
()
<=
0
);
if
(
emptyRequest
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment