Skip to content
Snippets Groups Projects
Commit cee10c49 authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

fixed minor checkstyle problems

parent 58bd6fc8
No related branches found
No related tags found
No related merge requests found
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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment