Package nsf.playground.environments

Examples of nsf.playground.environments.PlaygroundEnvironment.prepareEndpoints()


    // If this parameter exists, then we initialize it
    String envName = request.getHeader("x-env");
    if(StringUtil.isNotEmpty(envName)) {
      DataAccessBean dataAccess = DataAccessBean.get();
      PlaygroundEnvironment env = dataAccess.getCurrentEnvironment(envName);
      env.prepareEndpoints();
    }
    super.service(request, response);
  }
 
}
View Full Code Here


    protected SBTEnvironment getDefaultEnvironment(Context context) {
    DataAccessBean dataAccess = DataAccessBean.get();
    String envName = context.getHttpRequest().getHeader("x-env");
    //String envName = (String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("environment");
    PlaygroundEnvironment env = dataAccess.getCurrentEnvironment(envName);
    env.prepareEndpoints();
    return env;
   

}
View Full Code Here

 
      DataAccessBean dataAccess = DataAccessBean.get();
     
      String envName = options.getString("env");
      PlaygroundEnvironment env = dataAccess.getEnvironment(envName);
      env.prepareEndpoints();
 
      // Push the dynamic parameters to the user session
      JsonObject p = (JsonObject)options.get("params");
      if(p!=null) {
        for(Iterator<String> it= p.getJsonProperties(); it.hasNext(); ) {
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.