java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.codelibs.jcifs.smb.http.NetworkExplorer
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
Deprecated.
Unsupported
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompareDates(SmbFile f1, String f1name, SmbFile f2) Deprecated.Compares two SMB files by modification date.protected intcompareNames(SmbFile f1, String f1name, SmbFile f2) Deprecated.Compares two SMB files by nameprotected intcompareSizes(SmbFile f1, String f1name, SmbFile f2) Deprecated.Compares two SMB files by sizeprotected intcompareTypes(SmbFile f1, String f1name, SmbFile f2) Deprecated.Compares two SMB files by file type/extension.protected voiddoDirectory(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, SmbFile dir) Deprecated.Handles directory listing requests for SMB directories.protected voiddoFile(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, SmbFile file) Deprecated.Handles file download requests for SMB files.voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Deprecated.voidinit()Deprecated.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
NetworkExplorer
public NetworkExplorer()Deprecated.Default constructor.
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletExceptionDeprecated.- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
doFile
protected void doFile(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, SmbFile file) throws IOException Deprecated.Handles file download requests for SMB files.- Parameters:
req- the HTTP servlet requestresp- the HTTP servlet responsefile- the SMB file to download- Throws:
IOException- if an I/O error occurs
-
compareNames
Deprecated.Compares two SMB files by name- Parameters:
f1- first file to comparef1name- name of first filef2- second file to compare- Returns:
- comparison result for sorting
- Throws:
IOException- if an I/O error occurs
-
compareSizes
Deprecated.Compares two SMB files by size- Parameters:
f1- first file to comparef1name- name of first filef2- second file to compare- Returns:
- comparison result for sorting
- Throws:
IOException- if an I/O error occurs
-
compareTypes
Deprecated.Compares two SMB files by file type/extension.- Parameters:
f1- first file to comparef1name- name of first filef2- second file to compare- Returns:
- comparison result for sorting
- Throws:
IOException- if an I/O error occurs
-
compareDates
Deprecated.Compares two SMB files by modification date.- Parameters:
f1- first file to comparef1name- name of first filef2- second file to compare- Returns:
- comparison result for sorting
- Throws:
IOException- if an I/O error occurs
-
doDirectory
protected void doDirectory(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, SmbFile dir) throws IOException Deprecated.Handles directory listing requests for SMB directories.- Parameters:
req- the HTTP servlet requestresp- the HTTP servlet responsedir- the SMB directory to list- Throws:
IOException- if an I/O error occurs
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException, jakarta.servlet.ServletException Deprecated.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
IOExceptionjakarta.servlet.ServletException
-