| javax.servlet.http.HttpServlet org.enhydra.servlet.servlets.JarServerServlet
JarServerServlet | public class JarServerServlet extends HttpServlet (Code) | | 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.
version: $Revision: 1.2 $ |
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 information including name,
and jarFile. | public void | init(ServletConfig config) This initializes the servlet and gets the jarFile parameter. | public String | toHtml() Extra status info, shown by the Enhydra Server admin status page. |
JarServerServlet | public JarServerServlet()(Code) | | Create a new JarServerServlet.
|
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 information including name,
and jarFile.
Servlet information. |
init | public void init(ServletConfig config) throws ServletException(Code) | | This initializes the servlet and gets the jarFile parameter.
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)
|
|
|