/*
 * (C) Copyright 2013 Kurento (http://kurento.org/)
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 */
package com.kurento.kmf.jsonrpcconnector;

public abstract class DefaultJsonRpcHandler<P> implements JsonRpcHandler<P> {

	@Override
	public void afterConnectionEstablished(Session session) throws Exception {
	}

	@Override
	public void afterConnectionClosed(Session session, String status)
			throws Exception {
	}

	@Override
	public void handleTransportError(Session session, Throwable exception)
			throws Exception {
	}

	@Override
	public void handleUncaughtException(Session session, Exception exception) {
	}

	@Override
	public Class<?> getHandlerType() {
		return this.getClass();
	}
}

@@ -627,16 +627,74 @@
 ector;%0A%0A
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A
 public a
@@ -764,16 +764,93 @@
 r%3CP%3E %7B%0A%0A
+%09private Logger LOG = LoggerFactory.getLogger(DefaultJsonRpcHandler.class);%0A%0A
 %09@Overri
@@ -1233,16 +1233,105 @@
 tion) %7B%0A
+%09%09LOG.warn(%22Uncaught exception in handler %22 + this.getClass().getName(),%0A%09%09%09%09exception);%0A
 %09%7D%0A%0A%09@Ov

Include log warn message for uncaught exceptions