public abstract class AbstractStreamingServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
AbstractStreamingServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected DocumentService |
getDocService(javax.servlet.http.HttpSession session)
Returns an instance of the
DocumentService by the given session. |
void |
init() |
protected void |
writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String hDoc,
int element,
String filename,
boolean currentRevision)
Writes the document's content to the request's output stream.
|
protected void |
writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String hDoc,
int element,
String filename,
boolean currentRevision,
long start,
long size)
Writes the document's content to the request's output stream.
|
protected void |
writeInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
InputStream in,
String filename)
Writes the given input stream to the responses output stream.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionGenericServlet.init()public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletGenericServlet.destroy()protected void writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String hDoc,
int element,
String filename,
boolean currentRevision)
throws IOException
request - the requestresponse - the responsehDoc - the hdocelement - the elementfilename - the filenamecurrentRevision - current revisionIOException - Signals that an I/O exception has occurred.protected void writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String hDoc,
int element,
String filename,
boolean currentRevision,
long start,
long size)
throws IOException
request - the requestresponse - the responsehDoc - the hdocelement - the elementfilename - the filenamecurrentRevision - current revisionIOException - Signals that an I/O exception has occurred.protected void writeInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
InputStream in,
String filename)
throws IOException
request - The HttpServletRequest.response - The HttpServletResponsein - The InputStream that holds the data to write to the output stream.filename - The filename of the data.IOException - if an exception occurs.protected DocumentService getDocService(javax.servlet.http.HttpSession session)
DocumentService by the given session.session - The current session instance.DocumentService.Copyright © 2016 SAPERION AG. All rights reserved.