Examples of clearSessionID()


Examples of org.sd_network.vfsshell.Session.clearSessionID()

        String parentFileID = session.getCurrentDirectory().getID();

        try {
            vfsService.createFile(sessionID, parentFileID, fileName);
        } catch (SessionException e) {
            session.clearSessionID();
            throw new IllegalStateException("ERROR: session time out.");
        } catch (VfsIOException e) {
            System.out.println("ERROR: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

                        "ERROR: [" + dirName + "] is not directory.");
                return;
            }
            session.setCurrentDirectory(targetFile);
        } catch (SessionException e) {
            session.clearSessionID();
            throw new IllegalStateException("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

            vfsService.addUser(sessionID, loginName, password, isAdmin);
            System.out.println("User [" + loginName + "] added.");
        } catch (PermissionException e) {
            System.out.println("ERROR: add user failed. (" + e.getMessage() + ")");
        } catch (SessionException e) {
            session.clearSessionID();
            System.out.println("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

            if (sb.length() > 0)
                System.out.println(sb.toString());
            else
                System.out.println("/");
        } catch (SessionException e) {
            session.clearSessionID();
            throw new IllegalStateException("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

            }
            vfsService.deleteObject(sessionID, targetFile.getID());
        } catch (VfsIOException e) {
            System.out.println("ERROR: " + e.getMessage());
        } catch (SessionException e) {
            session.clearSessionID();
            System.out.println("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

        try {
            vfsService.createDirectory(sessionID, parentFileID, dirName);
        } catch (VfsIOException e) {
            System.out.println("ERROR: " + e.getMessage());
        } catch (SessionException e) {
            session.clearSessionID();
            System.out.println("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

        try {
            vfsService.logout(sessionID);
        } catch (VfsIOException e) {
            System.out.println("ERROR: some file session close failed.");
        }
        session.clearSessionID();

        System.out.println("You were logged out.");
    }
}
View Full Code Here

Examples of org.sd_network.vfsshell.Session.clearSessionID()

                sb.append(child.getSize()).append("  ");
                sb.append(child.getCreated());
                System.out.println(sb.toString());
            }
        } catch (SessionException e) {
            session.clearSessionID();
            throw new IllegalStateException("ERROR: Session time out.");
        }
    }

    public void printUsage(String errorMessage) {
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.