KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > consumer > URLGenerator


1 package org.exoplatform.services.wsrp.consumer;
2
3 import java.util.Map JavaDoc;
4
5 /**
6  * This interface provides methods to query the consumer's urls.
7  * These methods could be used to implement consumer url rewriting.
8  *
9  * @author <a HREF="mailto:stefan.behl@de.ibm.com">Stefan Behl</a>
10  * @author Benjamin Mestrallet
11  */

12 public interface URLGenerator {
13
14   /**
15    * Creates a URL pointing to the consumer,triggering a performBlockingInteraction call.
16    */

17   public String JavaDoc getBlockingActionURL(String JavaDoc baseURL, Map JavaDoc params);
18
19   /**
20    * Creates a URL pointing to the consumer,triggering a getMarkup call.
21    */

22   public String JavaDoc getRenderURL(String JavaDoc baseURL, Map JavaDoc params);
23
24   /**
25    * Creates a URL pointing to the consumer,triggering the consumer
26    * to fetch a certain resource
27    */

28   public String JavaDoc getResourceURL(String JavaDoc baseURL, Map JavaDoc params);
29
30   /**
31    * Creates a 'url' that the consumer can use to namespace tokens.
32    */

33   public String JavaDoc getNamespacedToken(String JavaDoc token);
34
35 }
36
Popular Tags