All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kurento.kmf.jsonrpcconnector.DefaultJsonRpcHandler Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
/*
 * (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;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class DefaultJsonRpcHandler

implements JsonRpcHandler

{ private final Logger log = LoggerFactory .getLogger(DefaultJsonRpcHandler.class); @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) { log.warn("Uncaught exception in handler {}", this.getClass().getName(), exception); } @Override public Class getHandlerType() { return this.getClass(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy