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,
boolean forceInline)
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,
boolean forceInline)
Writes the given input stream to the responses output stream.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
GenericServlet.init()
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
GenericServlet.destroy()
protected void writeContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String hDoc, int element, String filename, boolean currentRevision, boolean forceInline) throws IOException
request
- the requestresponse
- the responsehDoc
- the hdocelement
- the elementfilename
- the filenamecurrentRevision
- current revisionforceInline
- if true, the content-disposition header is always set to 'inline'.IOException
- 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 revisionstart
- position to start atsize
- amount of data to writeIOException
- 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, boolean forceInline) throws IOException
request
- The HttpServletRequest
.response
- The HttpServletResponse
in
- The InputStream
that holds the data to write to the output stream.filename
- The filename of the data.forceInline
- if true, the content-disposition header is always set to 'inline'.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 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.