|
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
UrlCompression
com.bea.portlet.transformation.UrlTransformation
public abstract class UrlTransformation
This is an extension of the default url compression algorithm that allows a developer to rewrite a portion of a wlp url to make it more readable or to format it in a way that fits the usage model for the portal site. After a concrete implementation of this class, do the following to enable. Add the following to the web app's web.xml <servlet> <servlet-name>UrlTransformationServlet</servlet-name> <servlet-class>com.bea.portlet.transformation.UrlTranformationServlet</servlet-class> <init-param> <param-name>defaultPage</param-name> <param-value>/index.jsp</param-value> </init-param> <init-param> <param-name>errorPage</param-name> <param-value>/errors/error.jsp</param-value> </init-param> <init-param> <param-name>implementation</param-name> <param-value>concrete implementation of com.bea.portlet.transformation.UrlTransformation</param-value> <param-name>param</param-name> <param-value>pageId</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>UrlTransformationServlet</servlet-name> <url-pattern>TheGreatestBookStore/*</url-pattern> </servlet-mapping> Add the following tag to your beehive-url-template-config.xml templates. {url:compression}
| Constructor Summary | |
|---|---|
UrlTransformation()Default constructor. |
|
| Method Summary | |
|---|---|
abstract String |
transformUrl(javax.servlet.http.HttpServletRequest request, String url)Transform a fully qualified wlp url into a format that meets the requirements of the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrlTransformation()
| Method Detail |
|---|
public abstract String transformUrl(javax.servlet.http.HttpServletRequest request,
String url)
throws UrlTransformationException
request - object that contains the request the client made of the servleturl - the fully qualified wlp url.UrlTransformationException - wrapper exception for any exception that is raised.
|
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.