Examples of GatewayConfig


Examples of com.lgx8.common.entities.GatewayConfig

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
        base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

     */
    public void contextInitialized(ServletContextEvent arg0) {
      ServletContext servletContext = arg0.getServletContext();
      ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);
      IConfigDao configDao = (IConfigDao) appContext.getBean("configDao");
      GatewayConfig gatewayConfig = configDao.findGatewayConfig();
      servletContext.setAttribute("gatewayConfig", gatewayConfig);
     
//      gatewayConfig.setUrl("http://localhost:8080/yikatao");
     
      Constants.gatewayConfig = gatewayConfig;
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

                     
                      ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
                      IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
                      gatewayService.createProductImage(productImage);
                     
                      GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
                     
                      PrintWriter out = response.getWriter();
                      out.println("<script type=\"text/javascript\">");
                      out.println("var ret=new Array();");
                      out.println("var ret=new Array();");
                      out.println("ret[0]='"+productImage.getId()+"';");
                      out.println("ret[1]='"+gatewayConfig.getUrl()+"/"+productImage.getLargeURL()+"';");
                      out.println("ret[2]='"+productImage.getLargeURL()+"';");
                      out.println("window.returnValue=ret;");
                      out.println("window.close();");
                      out.println("</script>");
                      out.write("");
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway/luxuryproduct");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
        base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway/cityproduct");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
    base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
        base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

Examples of com.lgx8.common.entities.GatewayConfig

    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway/admin");
        configuration.setDefaultEncoding("UTF-8");
        configuration.setNumberFormat("0.##########");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
    root.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    root.put("areaCategorys", areaCategorys);
   
View Full Code Here

Examples of org.apache.hadoop.gateway.config.GatewayConfig

public class DeploymentFactoryFuncTest {

  @Test
  public void testGenericProviderDeploymentContributor() throws ParserConfigurationException, SAXException, IOException, TransformerException {
    GatewayConfig config = new GatewayTestConfig();
    File targetDir = new File( System.getProperty( "user.dir" ), "target" );
    File gatewayDir = new File( targetDir, "gateway-home-" + UUID.randomUUID() );
    gatewayDir.mkdirs();

    ((GatewayTestConfig) config).setGatewayHomeDir( gatewayDir.getAbsolutePath() );

    File deployDir = new File( config.getGatewayDeploymentDir() );
    deployDir.mkdirs();

//    ((GatewayTestConfig) config).setDeploymentDir( "clusters" );

    DefaultGatewayServices srvcs = new DefaultGatewayServices();
View Full Code Here

Examples of org.apache.hadoop.gateway.config.GatewayConfig

    assertThat( gateway, hasXPath( "/gateway/resource[1]/filter[1]/param[1]/value", equalTo( "test-param-value" ) ) );
  }

  @Test
  public void testInvalidGenericProviderDeploymentContributor() throws ParserConfigurationException, SAXException, IOException, TransformerException {
    GatewayConfig config = new GatewayTestConfig();
    File targetDir = new File( System.getProperty( "user.dir" ), "target" );
    File gatewayDir = new File( targetDir, "gateway-home-" + UUID.randomUUID() );
    gatewayDir.mkdirs();
    ((GatewayTestConfig) config).setGatewayHomeDir( gatewayDir.getAbsolutePath() );
    File deployDir = new File( config.getGatewayDeploymentDir() );
    deployDir.mkdirs();

    DefaultGatewayServices srvcs = new DefaultGatewayServices();
    Map<String,String> options = new HashMap<String,String>();
    options.put("persist-master", "false");
View Full Code Here

Examples of org.apache.hadoop.gateway.config.GatewayConfig

    }
  }

  @Test
  public void testSimpleTopology() throws IOException, SAXException, ParserConfigurationException, URISyntaxException {
    GatewayConfig config = new GatewayTestConfig();
    File targetDir = new File( System.getProperty( "user.dir" ), "target" );
    File gatewayDir = new File( targetDir, "gateway-home-" + UUID.randomUUID() );
    gatewayDir.mkdirs();
    ((GatewayTestConfig) config).setGatewayHomeDir( gatewayDir.getAbsolutePath() );
    File deployDir = new File( config.getGatewayDeploymentDir() );
    deployDir.mkdirs();

    DefaultGatewayServices srvcs = new DefaultGatewayServices();
    Map<String,String> options = new HashMap<String,String>();
    options.put("persist-master", "false");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.