org.exoplatform.services.wsrp.consumer.impl
Class URLRewriterImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp.consumer.impl.URLRewriterImpl
All Implemented Interfaces:
URLRewriter

public class URLRewriterImpl
extends java.lang.Object
implements URLRewriter


Constructor Summary
URLRewriterImpl(URLGenerator urlGenerator)
           
 
Method Summary
 java.lang.String rewriteURLs(java.lang.String path, java.lang.String markup)
          Parses the entire markup and rewrites all found URLs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLRewriterImpl

public URLRewriterImpl(URLGenerator urlGenerator)
Method Detail

rewriteURLs

public java.lang.String rewriteURLs(java.lang.String path,
                                    java.lang.String markup)
                             throws WSRPException
Description copied from interface: URLRewriter
Parses the entire markup and rewrites all found URLs. The URLs to be rewritten are enclosed by the tokens "wsrp-rewrite" and "/wsrp-rewrite".

Specified by:
rewriteURLs in interface URLRewriter
Throws:
WSRPException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.