|
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.ShowPropertyServlet
public class ShowPropertyServlet
Writes a property of a Node to the response OutputStream. The available paramater options are as follows:
With any of the above, if you would like to display a property other than the primary property, simply put "//propertyName" at the end of the parameter/pathInfo.
| 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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Called by the server (via the service method) to allow a servlet to handle a GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Prints out the value of the content property from the Node specified in the request. |
protected void |
showError(String error, Throwable ex, javax.servlet.http.HttpServletResponse resp)Output in the case of an error. |
| 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, log, log |
| 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 javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOException
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOException
protected void printNode(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
RepositoryException,
IllegalArgumentException,
javax.servlet.ServletException
This will not print any error messages to the response.
Note: Calendar values will be printed with the default Locale. See Value.toString()
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.javax.servlet.ServletException
@Deprecated
protected byte[] nioRead(FileInputStream is)
throws IOException
IOException
@Deprecated
protected void ioReadWrite(InputStream is,
OutputStream out)
throws IOException
IOException
protected void showError(String error,
Throwable ex,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOException
|
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.