| javax.servlet.http.HttpServlet org.enhydra.servlet.servlets.FileServerServlet
FileServerServlet | public class FileServerServlet extends HttpServlet (Code) | | This class serves files from HTTP request. Currently only a
limited Http GET request will be processed. CGI arguments will
not be processed. The initial parameter 'index=something.html' can
for the default html page. If this parameter is not set then it
will default to "index.html".
version: 1.8, 3/98 |
Method Summary | |
public void | doGet(HttpServletRequest req, HttpServletResponse res) This method will process a limited http GET request for a file.
The method will serve files, but will not process cgi arguments.
Parameters: req - encapsulates the request to the servlet. Parameters: res - encapsulates the response from the servlet. | public void | doPost(HttpServletRequest req, HttpServletResponse res) Http POST command is currently not supported and indicates
this sending a message to the client.
Parameters: req - encapsulates the request to the servlet. Parameters: res - encapsulates the response from the servlet. | public String | getServletInfo() Returns a string containing servlet infoemation including name,
and docRoot. | String | getUrl(HttpServletRequest request) Reconstruct the URL for this request.
Parameters: request - to the servlet. | public void | init(ServletConfig config) This initializes the servlet and sets the variables docRoot and
log logging options. | public String | toHtml() Extra status info, shown by the Enhydra Server admin status page. |
FileServerServlet | public FileServerServlet()(Code) | | Create a new FileServerServlet.
|
doGet | public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code) | | This method will process a limited http GET request for a file.
The method will serve files, but will not process cgi arguments.
Parameters: req - encapsulates the request to the servlet. Parameters: res - encapsulates the response from the servlet. if the request could not be handled. if detected when processing. |
doPost | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code) | | Http POST command is currently not supported and indicates
this sending a message to the client.
Parameters: req - encapsulates the request to the servlet. Parameters: res - encapsulates the response from the servlet. if the request could not be handled. if detected when processing. |
getServletInfo | public String getServletInfo()(Code) | | Returns a string containing servlet infoemation including name,
and docRoot.
Servlet informatioon. |
init | public void init(ServletConfig config) throws ServletException(Code) | | This initializes the servlet and sets the variables docRoot and
log logging options.
Parameters: config - The servlet configuration object. exception: If - an exception occured during initialztion |
toHtml | public String toHtml()(Code) | | Extra status info, shown by the Enhydra Server admin status page.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|