| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.knowgate.http.HttpBinaryServlet
HttpBinaryServlet | public class HttpBinaryServlet extends HttpServlet (Code) | | Send Disk Binary File To HttpServletResponse OutputStream
author: Sergio Montoro ten version: 2.1 |
Method Summary | |
public void | doGet(HttpServletRequest request, HttpServletResponse response) Send disk binary file held in a Product to HttpServletResponse OutputStream
Parameters: id_user - Requester User GUID. Parameters: id_product - GUID of Requested Product. Parameters: id_location - GUID of Requested ProductLocation. Parameters: id_category - (Optional) GUID from Category that contains the Product to serve.If a Category is provided then the User permissions over that Category are checkedbefore serving the file. | public void | init() Initialize Servlet Parameters
Take Database Driver, Conenction URL and User from /WEB-INF/web.xml.
If any parameter is not found then look it up at hipergate.cnf Properties
file using Environment singleton. | public static long | pipe(InputStream in, OutputStream out, int chunkSize) |
init | public void init() throws ServletException(Code) | | Initialize Servlet Parameters
Take Database Driver, Conenction URL and User from /WEB-INF/web.xml.
If any parameter is not found then look it up at hipergate.cnf Properties
file using Environment singleton.
throws: ServletException - throws: UnavailableException - If jdbcDriverClassName parameter is not foundand driver property at hipergate.cnf is not found or if jdbcURL parameteris not found and dburl property at hipergate.cnf is not found. See Also: com.knowgate.misc.Environment |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|