Package org.apache.openmeetings.web.app

Examples of org.apache.openmeetings.web.app.Application


    }
  }
 
  public static void ensureApplication(long langId) {
    if (!Application.exists()) {
      Application a = (Application)Application.get(Application.getAppName());
      ThreadContext.setApplication(a);
     
      ServletWebRequest req = new ServletWebRequest(new MockHttpServletRequest(a, new MockHttpSession(a.getServletContext()), a.getServletContext()), "");
      RequestCycleContext rctx = new RequestCycleContext(req, new MockWebResponse(), a.getRootRequestMapper(), a.getExceptionMapperProvider().get());
      ThreadContext.setRequestCycle(new RequestCycle(rctx));
     
      WebSession s = WebSession.get();
      s.setLanguage(langId);
      ThreadContext.setSession(s);
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.web.app.Application

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.