Package Model

Examples of Model.DownloadHandlerVO


        List<IDownloadHandler> handlersList = SubTitleManager.getExistingHandlers();
        HashMap<IDownloadHandler, DownloadHandlerVO> handlers = new HashMap<IDownloadHandler, DownloadHandlerVO>();

        for (IDownloadHandler handler : handlersList) {
            try {
                DownloadHandlerVO handlerVO = (DownloadHandlerVO) handler.getHandlerVOType().newInstance();
                Method[] metodos = handlerVO.getClass().getMethods();
                for (Method metodo : metodos) {
                    if (metodo.getName().startsWith("set")) {
                        Class<?> typeParam = metodo.getParameterTypes()[0];
                        String nomeProp = metodo.getName().substring(3);
                        String nomePropFile = handler.getClass().getSimpleName() + "." + nomeProp;
View Full Code Here


        // Configuração dos Handlers
        final List<IDownloadHandler> handlersList = SubTitleManager.getExistingHandlers();
        for (IDownloadHandler handler : handlersList) {
            try {
                DownloadHandlerVO handlerVO = (DownloadHandlerVO) handler.getHandlerVOType().newInstance();
                Method[] metodos = handlerVO.getClass().getMethods();

                int paramCount = 2;
                for (Method metodo : metodos)
                    if (metodo.getName().startsWith("set"))
                        paramCount++;

                String nomeHandle = handler.getClass().getSimpleName();
                addLocalisedMessage(localeUtil, nomeHandle, handler.getDescription());
                addLocalisedMessage(localeUtil, handler.getSiteUrl(), handler.getSiteUrl());

                Parameter[] parametros = new Parameter[paramCount];
                parametros[0] = cfg.addHyperlinkParameter2(handler.getSiteUrl(), handler.getSiteUrl());
                parametros[1] = cfg.addBooleanParameter2(nomeHandle, _BaseConfigName + ".Active", false);

                paramCount = 2;
                for (Method metodo : metodos) {
                    if (metodo.getName().startsWith("set")) {
                        Class<?> typeParam = metodo.getParameterTypes()[0];
                        String nomeProp = metodo.getName().substring(3);
                        String nomePropPlugin = handler.getClass().getSimpleName() + "." + nomeProp;
                        String resourceMessage = _BaseConfigName + "." + handlerVO.getClass().getSimpleName() + "." + nomeProp;

                        if ((handler.getLogonType() == IDownloadHandler.LogonType.None) &
                                ((metodo.getName().equals("setUserName")) || (metodo.getName().equals("setPassword"))))
                            continue;
View Full Code Here

                SystemInformation systemInformation = new SystemInformation();
                systemInformation.setSystemName(Core.SYSTEM_NAME);
                systemInformation.setVersionNumber(Core.VERSION_NUMBER);
                handler.setSystemInformation(systemInformation);
                try {
                    DownloadHandlerVO handlerVO = (DownloadHandlerVO) handler.getHandlerVOType().newInstance();
                    Method[] metodos = handlerVO.getClass().getMethods();
                    for (Method metodo : metodos) {
                        if (metodo.getName().startsWith("set")) {
                            Class<?> typeParam = metodo.getParameterTypes()[0];
                            String nomeProp = metodo.getName().substring(3);
                            String nomePropPlugin = handler.getClass().getSimpleName() + "." + nomeProp;
View Full Code Here

TOP

Related Classes of Model.DownloadHandlerVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.