org.apache.wsrp4j.consumer
Interface URLRewriter

All Known Implementing Classes:
URLRewriterImpl

public interface URLRewriter

This interface provides a method performing Consumer URLRewriting.

Version:
1.1
Author:
Stefan Behl

Method Summary
 java.lang.String rewriteURLs(java.lang.String markup)
          Parses the entire markup and rewrites all found URLs.
 void setURLGenerator(URLGenerator urlGenerator)
          Sets the URLGenerator to be used.
 

Method Detail

setURLGenerator

public void setURLGenerator(URLGenerator urlGenerator)
Sets the URLGenerator to be used.


rewriteURLs

public java.lang.String rewriteURLs(java.lang.String markup)
Parses the entire markup and rewrites all found URLs. The URLs to be rewritten are enclosed by the tokens "wsrp-rewrite" and "/wsrp-rewrite".

Parameters:
markup - The markup to be parsed for URLs to be rewritten.
Returns:
String representing markup incl. complete URLs.