org.apache.wsrp4j.consumer
Interface URLGenerator


public interface URLGenerator

This interface provides methods to query the consumer's urls. These methods could be used to implement consumer url rewriting.

Author:
Stefan Behl

Method Summary
 java.lang.String getBlockingActionURL(java.util.Map params)
          Creates a URL pointing to the consumer,triggering a performBlockingInteraction call.
 java.lang.String getNamespacedToken(java.lang.String token)
          Creates a 'url' that the consumer can use to namespace tokens.
 java.lang.String getRenderURL(java.util.Map params)
          Creates a URL pointing to the consumer,triggering a getMarkup call.
 java.lang.String getResourceURL(java.util.Map params)
          Creates a URL pointing to the consumer,triggering the consumer to fetch a certain resource
 

Method Detail

getBlockingActionURL

public java.lang.String getBlockingActionURL(java.util.Map params)
Creates a URL pointing to the consumer,triggering a performBlockingInteraction call.

Parameters:
params - A map with all parameters which should be appended to the URL.
Returns:
a blockingInteraction URL

getRenderURL

public java.lang.String getRenderURL(java.util.Map params)
Creates a URL pointing to the consumer,triggering a getMarkup call.

Parameters:
params - A map with all parameters which should be appended to the URL.
Returns:
a getMarkup URL

getResourceURL

public java.lang.String getResourceURL(java.util.Map params)
Creates a URL pointing to the consumer,triggering the consumer to fetch a certain resource

Parameters:
params - A map with all parameters which should be appended to the URL.
Returns:
a resource URL

getNamespacedToken

public java.lang.String getNamespacedToken(java.lang.String token)
Creates a 'url' that the consumer can use to namespace tokens.

Returns:
a prefix which ca nbe used to namespace tokens.