com.kurento.kmf.jsonrpcconnector.DefaultJsonRpcHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmf-jsonrpcconnector-client Show documentation
Show all versions of kmf-jsonrpcconnector-client Show documentation
JSON-RPC Protocol with transports based on http and websocket
/*
* (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