Package org.jayasoft.woj.server.servlet

Examples of org.jayasoft.woj.server.servlet.ServerRedirectException


       
        Authentification a = WOJServer.getInstance().getAuthentificationService().authenticate(userName, passwd, mahcineId, version);
       
        //Current server can not serve the request, we send a redirect to the good server
        if(a instanceof AuthNotDone) {
            throw new ServerRedirectException(((AuthNotDone)a).getAuthServer());
        } else {
            SecurityHelper.saveAuthentification(ServletHelper.getCurrentSession(), a);
            return a;
        }
    }
View Full Code Here


            Server selected = (Server)servers.get(RANDOM.nextInt(servers.size()));
            LOGGER.info("selected "+selected+" to handle "+request+" among "+servers);
            if (WOJServer.getInstance().getServerManagementService().getLocalServer().equals(selected)) {
                return doGetContentReference(uak, visibility, org, mod, rev, path);
            } else {
                throw new ServerRedirectException(selected);
            }
        }
    }
View Full Code Here

        if (master == null) {
            LOGGER.info("impossible to forward "+request+" to master, we don't know who it is");
            throw new IllegalStateException("master is not known for the moment, impossible to forward a request");
        } else {
            LOGGER.info("forwarding "+request+" to master: "+master);
            throw new ServerRedirectException(master);
        }
    }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.server.servlet.ServerRedirectException

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.