package art.servers.bannerserver.controller; import art.library.interop.InteropParameters; import art.library.interop.InteropResponse; import art.library.interop.serialization.SerializationException; import art.servers.ServerException; import art.servers.bannerserver.Shared; public class ListenerImplementation extends art.servers.controller.ListenerImplementation { // public InteropResponse sendCommands(InteropParameters parameters) throws SerializationException { String language = (String)parameters.getParameterValue("language"); try { String identifier = (String)parameters.getParameterValue("device"); ControllerBanner controller = (ControllerBanner)Shared.getDeviceController(identifier); InteropResponse response = new InteropResponse(controller.sendCommands(parameters)); return(response); } catch (ServerException exception) { throw new SerializationException(Shared.getMessage(language, exception.getMessage())); } catch (Exception exception) { throw new SerializationException(Shared.getMessage(language, exception.getMessage()), exception); } } // }