Package jcifs.smb1.http
Class NetworkExplorer
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- jcifs.smb1.http.NetworkExplorer
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class NetworkExplorer extends javax.servlet.http.HttpServletThis 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
Constructors Constructor Description NetworkExplorer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareDates(SmbFile f1, String f1name, SmbFile f2)protected intcompareNames(SmbFile f1, String f1name, SmbFile f2)protected intcompareSizes(SmbFile f1, String f1name, SmbFile f2)protected intcompareTypes(SmbFile f1, String f1name, SmbFile f2)protected voiddoDirectory(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile dir)protected voiddoFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile file)voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidinit()-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doFile
protected void doFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile file) throws IOException- Throws:
IOException
-
compareNames
protected int compareNames(SmbFile f1, String f1name, SmbFile f2) throws IOException
- Throws:
IOException
-
compareSizes
protected int compareSizes(SmbFile f1, String f1name, SmbFile f2) throws IOException
- Throws:
IOException
-
compareTypes
protected int compareTypes(SmbFile f1, String f1name, SmbFile f2) throws IOException
- Throws:
IOException
-
compareDates
protected int compareDates(SmbFile f1, String f1name, SmbFile f2) throws IOException
- Throws:
IOException
-
doDirectory
protected void doDirectory(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, SmbFile dir) throws IOException- Throws:
IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException, javax.servlet.ServletException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
IOExceptionjavax.servlet.ServletException
-
-