|
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.p13n.placeholder.servlets.PlaceholderPreviewServlet
public class PlaceholderPreviewServlet
A servlet which generates a content query preview info.
If a request parameter called 'query' is set, it is assumed to contain the cq:contentQuery XML structure of a content query. The 'username' request parameter will be used to resolve user property references. The servlet will return XML of the form:
<preview-info-result>
<preview-info is-folder="true|false">
<path>...</path>
<mimeType>...</mimeType>
<size>...</size>
</preview-info>
...
</preview-info-result>
with a <preview-info> entry per content object that would be returned from the content query.
If a request parameter of 'path' is set, then, depending upon the 'phtype' request parameter, the corresponding content object will be rendered (Ad) or displayed (ContentSelector).
The phType request parameter is always required
This expects the PlaceholderService to use to be mapped to java:comp/env/ejb/PlaceholderService and the AdServier to be mapped to java:comp/env/ejb/AdService.
It also expects a ShowBinaryServlet to mapped to the partial URI defined by the "ShowDocURI" init parameter (defaulting to ContentProviders.getShowDocURI()
).
Field Summary | |
---|---|
static String |
CONTENT_SELECTOR_TYPE The phtype that identifies a ContentSelector preview. |
Constructor Summary | |
---|---|
PlaceholderPreviewServlet() |
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Do the GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Do the POST request. |
void |
init() Initialize this servlet. |
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 CONTENT_SELECTOR_TYPE
Constructor Detail |
---|
public PlaceholderPreviewServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.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.HttpServlet
req
- the HTTP requestresp
- the HTTP responsejavax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet()
.doPost
in class javax.servlet.http.HttpServlet
req
- the HTTP requestresp
- the HTTP responsejavax.servlet.ServletException
IOException
|
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.