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
|
{
|
|
// <editor-fold defaultstate="collapsed" desc="Commands">
|
|
|
|
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);
|
}
|
}
|
|
// </editor-fold>
|
|
|
}
|