Package com.adito.vfs

Examples of com.adito.vfs.VFSRepository


     * @throws Exception on any error
     */
    public static DAVProcessor getDAVProcessor(HttpSession session) throws Exception {
        DAVProcessor processor = (DAVProcessor) session.getAttribute(PROCESSOR_ATTR);
        if (processor == null) {
            VFSRepository repository = VFSRepository.getRepository(session);
            processor = new DAVProcessor(repository);
            processors.add(processor);
            session.setAttribute(PROCESSOR_ATTR, processor);
            session.setAttribute(SESSION_INVALIDATE_LISTENER_ATTR, new SessionInvalidateListener(processor));
            if (log.isInfoEnabled())
View Full Code Here


        throw new Exception("No launch session.");
      }
      fileSystemForm.setLaunchSession(launchSession);
    }
    DAVTransaction transaction = new DAVTransaction(request, response);
    VFSRepository repository = VFSRepository.getRepository(launchSession.getSession().getHttpSession());
    VFSResource res = repository.getResource(launchSession, fileSystemForm.getPath(), transaction.getCredentials());
    if (res == null) {
      throw new Exception("Could not find network place resource for path " + fileSystemForm.getPath() + ".");
    }
    fileSystemForm.setVFSResource(res);
    return res;
View Full Code Here

  VFSResource getResourceForPath(LaunchSession launchSession, HttpServletRequest request, HttpServletResponse response,
                  String path) throws Exception {

    DAVTransaction transaction = new DAVTransaction(request, response);

    VFSRepository repository = VFSRepository.getRepository(request.getSession());
    VFSResource res = repository.getResource(launchSession, path, transaction.getCredentials());

    if (res == null) {
      throw new Exception("Could not find network place resource for path " + path + ".");
    }
    return res;
View Full Code Here

TOP

Related Classes of com.adito.vfs.VFSRepository

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.