|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet
public abstract class AbstractPreviewLinkServlet
Link service for Workbench Preview functionality. This service constructs a link to the page that is being previewed; it is also used for auditing content items.
This is the input to the service, as specified by request parameters:
ServletRequest.getParameter(String)
is single encoded.ServletRequest.getParameter(String) is single
encoded.__contentUri=%2Fpages%2Fbrowse%2525&__link=N%3D101012&__jsonp=Ext.data.JsonP.callback3&_dc=1338310267465.
| Constructor Summary | |
|---|---|
AbstractPreviewLinkServlet()
|
|
| Method Summary | |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates and returns a link to the page specified using request parameters. |
protected abstract ContentSource |
getContentSource()
A method to retrieve a ContentSource to use for
creating links. |
protected abstract NavigationStateBuilder |
getNavigationStateBuilder()
A method to retrieve a NavigationStateBuilder to use for
creating links. |
protected String |
getUrlForAction(NavigationAction action)
Constructs and returns a URL representing the given NavigationAction. |
| 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 AbstractPreviewLinkServlet()
| Method Detail |
|---|
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AbstractPreviewLinkServlet.
doGet in class javax.servlet.http.HttpServletrequest - The request the client has made of the servletresponse - The response the servlet sends to the client
IOException - If an input or output error is detected when
the servlet handles the GET request
javax.servlet.ServletException - If the GET request could not be handledprotected abstract NavigationStateBuilder getNavigationStateBuilder()
NavigationStateBuilder to use for
creating links. Subclasses must override this method to provide a
specific means of acquiring the state builder.
protected abstract ContentSource getContentSource()
ContentSource to use for
creating links. Subclasses must override this method to provide a
specific means of acquiring the content source.
protected String getUrlForAction(NavigationAction action)
NavigationAction.
The default implementation simply concatenates
Action.getContentPath()
and NavigationAction.getNavigationState().
Applications with more complicated ways of constructing URLs can extend
this method to provide their own implementation.
action - The input action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||