| 
 | Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectHttpServlet
com.bea.content.manager.servlets.ShowPropertyServlet
public class ShowPropertyServlet
Writes a property of a Node to the response OutputStream. The available paramater options are as follows:
| Field Summary | |
|---|---|
| protected  boolean | closeStreamsShould we close the output stream when done. | 
| static String | DEFAULT_MIME_TYPEThe default mimetype used to render a node's binary property. | 
| static String | TEXT_MIME_TYPEDeprecated Not in use. | 
| Constructor Summary | |
|---|---|
| ShowPropertyServlet() | |
| Method Summary | |
|---|---|
|  void | doGet(HttpServletRequest req,
      HttpServletResponse resp)Called by the server (via the service method) to allow a servlet to handle a GET request. | 
|  void | doPost(HttpServletRequest req,
       HttpServletResponse resp)Called by the server (via the service method) to allow a servlet to handle a POST request. | 
|  void | init()Called by the servlet container to indicate to a servlet that the servlet is being placed into service. | 
| protected  void | ioReadWrite(InputStream is,
            OutputStream out)Deprecated | 
| protected  byte[] | nioRead(FileInputStream is)Deprecated | 
| protected  void | printNode(HttpServletRequest req,
          HttpServletResponse resp)Prints out the value of the content property from the Node specified in the request. | 
| protected  void | showError(String error,
          Throwable ex,
          HttpServletResponse resp)Output in the case of an error. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DEFAULT_MIME_TYPE
@Deprecated public static final String TEXT_MIME_TYPE
protected boolean closeStreams
| Constructor Detail | 
|---|
public ShowPropertyServlet()
| Method Detail | 
|---|
public void init()
          throws ServletException
ServletException
public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
           throws ServletException,
                  IOException
ServletException
IOException
public void doPost(HttpServletRequest req,
                   HttpServletResponse resp)
            throws ServletException,
                   IOException
ServletException
IOException
protected void printNode(HttpServletRequest req,
                         HttpServletResponse resp)
                  throws IOException,
                         RepositoryException,
                         IllegalArgumentException,
                         ServletException
This will not print any error messages to the response.
IOException - thrown on an error printing.
RepositoryException - thrown on an error talking to the
     repository or the Node doesn't have a content property to display.
IllegalArgumentException - thrown if the request doesn't contain
     a valid node path or the node wasn't found.
ServletException@Deprecated protected byte[] nioRead(FileInputStream is) throws IOException
IOException@Deprecated protected void ioReadWrite(InputStream is, OutputStream out) throws IOException
IOExceptionprotected void showError(String error, Throwable ex, HttpServletResponse resp) throws ServletException, IOException
ServletException
IOException| 
 | Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||