jcifs.http

Class NetworkExplorer


public class NetworkExplorer
extends HttpServlet

This servlet may be used to "browse" the entire hierarchy of resources on an SMB network like one might with Network Neighborhood or Windows Explorer. The users credentials with be negotiated using NTLM SSP if the client is Microsoft Internet Explorer.

Method Summary

protected int
compareDates(SmbFile f1, String f1name, SmbFile f2)
protected int
compareNames(SmbFile f1, String f1name, SmbFile f2)
protected int
compareSizes(SmbFile f1, String f1name, SmbFile f2)
protected int
compareTypes(SmbFile f1, String f1name, SmbFile f2)
protected void
doDirectory(HttpServletRequest req, HttpServletResponse resp, SmbFile dir)
protected void
doFile(HttpServletRequest req, HttpServletResponse resp, SmbFile file)
void
doGet(HttpServletRequest req, HttpServletResponse resp)
void
init()

Method Details

compareDates

protected int compareDates(SmbFile f1,
                           String f1name,
                           SmbFile f2)
            throws IOException

compareNames

protected int compareNames(SmbFile f1,
                           String f1name,
                           SmbFile f2)
            throws IOException

compareSizes

protected int compareSizes(SmbFile f1,
                           String f1name,
                           SmbFile f2)
            throws IOException

compareTypes

protected int compareTypes(SmbFile f1,
                           String f1name,
                           SmbFile f2)
            throws IOException

doDirectory

protected void doDirectory(HttpServletRequest req,
                           HttpServletResponse resp,
                           SmbFile dir)
            throws IOException

doFile

protected void doFile(HttpServletRequest req,
                      HttpServletResponse resp,
                      SmbFile file)
            throws IOException

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
            throws IOException,
                   ServletException

init

public void init()
            throws ServletException