Package ir.xweb.module

Examples of ir.xweb.module.Manager


  private static Manager manager;

  @Override
  public void contextInitialized(ServletContextEvent context) {
        if(manager == null) {
            manager = new Manager(context.getServletContext());
        }

    try {
      InputStream in = context.getServletContext().getResourceAsStream("/WEB-INF/xweb.xml");
View Full Code Here


  @Override
  protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
   
    Manager manager = (Manager)getServletContext().getAttribute(Constants.SESSION_MANAGER);
   
    String api = request.getParameter("api");
        if(api == null) {
            throw new ServletException(Constants.SESSION_MANAGER + " parameter not found (please set module name)");
        }
   
    Module module = manager.getModule(api);
    if(module != null) {
            //logger.trace("Call module: " + module.getInfo().getName());

            try {
                XWebUser user = (XWebUser) request.getSession().getAttribute(Constants.SESSION_USER);
View Full Code Here

    private ServletContext context;

    @Override
    public void init(final FilterConfig filterConfig) throws ServletException {
        final Manager manager = (Manager) filterConfig.getServletContext().getAttribute(Constants.SESSION_MANAGER);
        if(manager != null) {
            modules = manager.getModules().values();
            for(Module m:modules) {
                m.initFilter(filterConfig);
            }
        } else {
            modules = null;
View Full Code Here

TOP

Related Classes of ir.xweb.module.Manager

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.