Package com.avoka.fc.core.servlet
Class AttachmentViewServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.avoka.fc.core.servlet.AttachmentViewServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class AttachmentViewServlet extends HttpServlet
Provide an attachments download servlet for users reviewing their attachments. Security is provide via the attachmentKey reference.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_PARAM
The attachmentKey request parameter.static String
SERVLET_PATH
The attachment servlet path.
-
Constructor Summary
Constructors Constructor Description AttachmentViewServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(HttpServletRequest request, HttpServletResponse response)
Handle a get method to retrieve the users attachment.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
-
-
-
Field Detail
-
SERVLET_PATH
public static final String SERVLET_PATH
The attachment servlet path.- See Also:
- Constant Field Values
-
ID_PARAM
public static final String ID_PARAM
The attachmentKey request parameter.- See Also:
- Constant Field Values
-
-
Method Detail
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
Handle a get method to retrieve the users attachment.- Overrides:
doGet
in classHttpServlet
- Parameters:
request
- the servlet requestresponse
- the servlet response- Throws:
IOException
ServletException
-
-