Package com.saperion.ngc.servlet
Class MailContentServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.saperion.ngc.servlet.MailContentServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class MailContentServlet extends javax.servlet.http.HttpServlet
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DOCIDS_ATTR
Document ID's.
-
Constructor Summary
Constructors Constructor Description MailContentServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
init()
protected void
writeContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String hDoc, int element, java.lang.String filename, boolean currentRevision)
Writes the document's content to the request's output stream.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
DOCIDS_ATTR
public static final java.lang.String DOCIDS_ATTR
Document ID's.- See Also:
- Constant Field Values
-
-
Method Detail
-
writeContent
protected void writeContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String hDoc, int element, java.lang.String filename, boolean currentRevision) throws java.io.IOException
Writes the document's content to the request's output stream.- Parameters:
request
- the requestresponse
- the responsehDoc
- the hdocelement
- the elementfilename
- the filenamecurrentRevision
- current revision- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
init
public void init() throws javax.servlet.ServletException
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
- See Also:
GenericServlet.init()
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
- See Also:
GenericServlet.destroy()
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest , javax.servlet.http.HttpServletResponse)
-
-