Package us.jyg.freshet.web.form

Examples of us.jyg.freshet.web.form.ConfigForm


        return edit(mapping, form, request, response);
  }

    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("Entering edit");
        ConfigForm cf = (ConfigForm)form;
        cf.setConfigured(configurator.isConfigured());       
        return mapping.findForward("edit");
  }
View Full Code Here


        return mapping.findForward("edit");
  }

    public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("entering save");
        ConfigForm cf = (ConfigForm)form;
//        int port = Integer.parseInt(cf.getPort());
//        int emptyQWait = Integer.parseInt(cf.getEmptyQWait());
//        boolean useRandomizer = (("no".equals(cf.getUseRandomizer()))?false:true);
//        configurator.startEngines(cf.getLibPath(), port, useRandomizer, emptyQWait);
        configurator.startEngines(cf.getLibPath(), cf.getPort(), cf.getUseRandomizer(), cf.getEmptyQWait());
        try {configurator.createM3U(new URL(request.getRequestURL().toString()).getHost()); }
        catch (MalformedURLException mue) {log.error("Could not get propery requestURL for creating M3U: "+mue.getMessage());}
        return mapping.findForward("success");
  }
View Full Code Here

TOP

Related Classes of us.jyg.freshet.web.form.ConfigForm

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.