|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClipperUrlFilter
Interface for determining how links contained in the markup that is rendered in a clipper portlet should be rewritten. There are two kinds of URLs considered by this interface: "clickable" URLs and "resource" URLs.
You can register your own implementation of this interface to be used for a clipper portlet. To do that, set the portlet preference ClipperConstants.URL_FILTER_CLASS_PREFERENCE ("urlFilter"). If you don't want to write your own implementation, there are some simpler "presets" that you can configure. You can set the value of ClipperConstants.PROXY_RESOURCE_URLS_PREFERENCE ("proxyResourceUrls") to false to keep the system from proxying resource urls. You can also set regular expression values in ClipperConstants.ALLOWED_URL_REGEX_PREFERENCE ("allowedUrlRegex") if you want to restrict the urls reachable from a clipper portlet. Both of those preference settings are ignored if you provide your own implementation.
Method Summary | |
---|---|
boolean |
allowUrl(String url)
Should the url be reachable from the clipper portlet? If this method returns false, rewritten links containing this url will have empty values (for example, a link <a href="forbidden.site.com"> would be rewritten to <a href="" >. |
boolean |
rewriteClickableUrl(String url)
Should the url be rewritten to render the response within portal context inside the clipper portlet? If this methods returns false then the response from this url will come straight from the target url, and it will be rendered in the full browser and not inside the clipper portlet. |
boolean |
rewriteResourceUrl(String url)
For resource urls only, i.e. |
Method Detail |
---|
boolean allowUrl(String url)
url
- the url to be rewritten
rewriteClickableUrl
or
rewriteResourceUrl
, else the URL will be rewritten to be empty.boolean rewriteClickableUrl(String url)
url
- the url to be rewritten
boolean rewriteResourceUrl(String url)
url
- the url to be rewritten
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |