Package bank.gui.internettoegang

Examples of bank.gui.internettoegang.InvalidSessionException


    public boolean maakOver(String sessieId, int naarRekeningNr,
            long centen, String muntSymbool) throws RekeningNrDoesntExistException, InvalidSessionException, RemoteException {
        ISessie sessie = sessies.get(sessieId);
        if (sessie == null) {
            throw new InvalidSessionException("session unknown");
        }
       
        if (!sessie.isGeldig()) {
            logUit(sessieId);
            throw new InvalidSessionException("session has been expired");
        }
       
        int vanRekeningNr = sessie.getLoginAccount().getRekeningNr();
        if (vanRekeningNr == naarRekeningNr) {
            throw new RuntimeException("source and destination must be different");
View Full Code Here


    }

    public RekeningKlantInfo getRekeningKlantInfo(String sessieId) throws InvalidSessionException, RemoteException {
        ISessie sessie = sessies.get(sessieId);
        if (sessie == null) {
            throw new InvalidSessionException("unknown session");
        }
        if (!sessie.isGeldig()) {
            logUit(sessieId);
            throw new InvalidSessionException("session has been expired");
        }
        try {
            IRekening r = bank.getRekening(sessie.getLoginAccount().getRekeningNr());
            return new RekeningKlantInfo(r.getRekeningNr(), r.getSaldo().toString(), r.getMuntSymbool(), r.getEigenaar().getKlantNaam(), r.getEigenaar().getKlantPlaats());
        } catch (RekeningNrDoesntExistException e) {
View Full Code Here

TOP

Related Classes of bank.gui.internettoegang.InvalidSessionException

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.