|
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.JarServerServlet
public class JarServerServlet
This class serves files from jar/zip files for HTTP requests. Currently only a limited Http GET request will be processed. CGI arguments will not be processed. The initArg "jarFile" sets the name of the jar or zip file to serve files from.
Constructor Summary | |
---|---|
JarServerServlet()
Create a new JarServerServlet. |
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 information including name, and jarFile. |
void |
init(javax.servlet.ServletConfig config)
This initializes the servlet and gets the jarFile parameter. |
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 JarServerServlet()
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 |