Package it.unimi.di.big.mg4j.query
Class InputStreamItem
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- it.unimi.di.big.mg4j.query.InputStreamItem
-
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
public class InputStreamItem extends HttpServlet
An item serving a raw input stream from the document collection.This kind of
QueryServletitem will load into the browser the stream returned by the document collection for the given document. Using the system property it.unimi.di.big.mg4j.query.InputStreamItem.skip, you can set a number of sub-input streams that will be skipped by callingInputStream.reset()(seeit.unimi.di.big.mg4j.document).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InputStreamItem()
-
Method Summary
Modifier and Type Method Description protected voiddoGet(HttpServletRequest request, HttpServletResponse response)protected voiddoPost(HttpServletRequest request, HttpServletResponse response)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
-
-
-
Method Detail
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
- Overrides:
doGetin classHttpServlet- Throws:
IOException
-
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
- Overrides:
doPostin classHttpServlet- Throws:
IOException
-
-