|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.enhydra.servlet.servlets.FileServerServlet
public class FileServerServlet
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".
Constructor Summary | |
---|---|
FileServerServlet()
Create a new FileServerServlet. |
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method will process a limited http GET request for a file. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Http POST command is currently not supported and indicates this sending a message to the client. |
java.lang.String |
getServletInfo()
Returns a string containing servlet infoemation including name, and docRoot. |
void |
init(javax.servlet.ServletConfig config)
This initializes the servlet and sets the variables docRoot and log logging options. |
java.lang.String |
toHtml()
Extra status info, shown by the Enhydra Server admin status page. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileServerServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- The servlet configuration object.
If
- an exception occured during initialztion
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
req
- encapsulates the request to the servlet.res
- encapsulates the response from the servlet.
if
- the request could not be handled.
if
- detected when processing.
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
req
- encapsulates the request to the servlet.res
- encapsulates the response from the servlet.
if
- the request could not be handled.
if
- detected when processing.
javax.servlet.ServletException
java.io.IOException
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public java.lang.String toHtml()
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |