jcifs.http
Class NetworkExplorer

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byjcifs.http.NetworkExplorer
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class NetworkExplorer
extends javax.servlet.http.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.

See Also:
Serialized Form

Constructor Summary
NetworkExplorer()
           
 
Method Summary
protected  int compareDates(SmbFile f1, java.lang.String f1name, SmbFile f2)
           
protected  int compareNames(SmbFile f1, java.lang.String f1name, SmbFile f2)
           
protected  int compareSizes(SmbFile f1, java.lang.String f1name, SmbFile f2)
           
protected  int compareTypes(SmbFile f1, java.lang.String f1name, SmbFile f2)
           
protected  void doDirectory(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile dir)
           
protected  void doFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile file)
           
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkExplorer

public NetworkExplorer()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

doFile

protected void doFile(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp,
                      SmbFile file)
               throws java.io.IOException
Throws:
java.io.IOException

compareNames

protected int compareNames(SmbFile f1,
                           java.lang.String f1name,
                           SmbFile f2)
                    throws java.io.IOException
Throws:
java.io.IOException

compareSizes

protected int compareSizes(SmbFile f1,
                           java.lang.String f1name,
                           SmbFile f2)
                    throws java.io.IOException
Throws:
java.io.IOException

compareTypes

protected int compareTypes(SmbFile f1,
                           java.lang.String f1name,
                           SmbFile f2)
                    throws java.io.IOException
Throws:
java.io.IOException

compareDates

protected int compareDates(SmbFile f1,
                           java.lang.String f1name,
                           SmbFile f2)
                    throws java.io.IOException
Throws:
java.io.IOException

doDirectory

protected void doDirectory(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp,
                           SmbFile dir)
                    throws java.io.IOException
Throws:
java.io.IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws java.io.IOException,
                  javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException