|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectUrlCompression
com.bea.portlet.transformation.UrlTransformation
com.bea.portlet.transformation.PageHierarchyUrlTransformation
public class PageHierarchyUrlTransformation
Sample implementation of UrlTransformation. This particular implementation grabs the terminal page label,
shown in the wlp url as _pageLabel=foo, and then climbing the page hierarchy to create a '/' separated path. For example,
a url such as http://localhost:7001/urlTransformation/simple.portal?_nfpb=true&_pageLabel=Dime would get
turned into: http://localhost:7001/urlTransformation/TheGreatestBookStore/Books/Pulp/Dime?_pageId=fa1
| Constructor Summary | |
|---|---|
PageHierarchyUrlTransformation()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
generateHierarchyRecursive(PagePresentationContext ppc,
ArrayDeque<String> list)
Climb the page tree recursively to the root page (book). |
protected String |
generatePageHierarchy(DesktopPresentationContext dpc,
String terminalPageLabel)
Create a string representing the page hierarchy, starting with the terminal page and then walking up the tree to the root book/page. |
protected Map<String,String> |
parseQueryString(String queryString)
Parse the query string into name value pairs. |
String |
transformUrl(javax.servlet.http.HttpServletRequest request,
String url)
Transform a fully qualified wlp url into a format similar to the following. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageHierarchyUrlTransformation()
| Method Detail |
|---|
public String transformUrl(javax.servlet.http.HttpServletRequest request,
String url)
throws UrlTransformationException
transformUrl in class UrlTransformationrequest - object that contains the request the client made of the servleturl - the fully qualified wlp url.
com.bea.portlet.transformation.UrlTransformationException - wrapper exception for any exception that is raised.
UrlTransformationException - wrapper exception for any exception that is raised.
protected String generatePageHierarchy(DesktopPresentationContext dpc,
String terminalPageLabel)
dpc - The desktop presentation context for the portal.terminalPageLabel - the page label that is referenced in the url.
protected void generateHierarchyRecursive(PagePresentationContext ppc,
ArrayDeque<String> list)
ppc - The PagePresentationContext for the current page in the hierarchy.list - the list to prepend the parent page definitionprotected Map<String,String> parseQueryString(String queryString)
queryString - standard url query string.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||