|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.bea.content.manager.servlets.DownloadBinaryServlet
public class DownloadBinaryServlet
Downloads the bytes of a binary property for a Node specified in the request and provides a dialog box for users to save to their file system.
This will not print any error messages to the response.
The request paramaters are as follows:
| Constructor Summary | |
|---|---|
DownloadBinaryServlet() |
|
| Method Summary | |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Called by the server (via the service method) to allow a servlet to handle a GET request. |
protected void |
downloadBinary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Downloads the bytes of a binary property for a Node specified in the request and provides a dialog box for users to save to their file system. |
protected void |
showError(String error, Throwable ex, javax.servlet.http.HttpServletResponse resp)Output in case of an error. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadBinaryServlet()
| Method Detail |
|---|
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOException
protected void downloadBinary(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
RepositoryException,
IOException
This will not print any error messages to the response.
request - The requestresponse - The responseIOException - thrown on an error downloading and reading bytes.RepositoryException - thrown on an error talking to the repository or the Node doesn't have a content property to display.javax.servlet.ServletException - thrown if there was an error processing the request or response.
protected void showError(String error,
Throwable ex,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
javax.servlet.ServletException
error - The error string.ex - The exceptionresp - The responseIOException - thrown on an error getting the writer from the response.javax.servlet.ServletException - thrown if there was an error processing the response.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.