org.exoplatform.services.wsrp.consumer
Interface URLTemplateComposer

All Known Implementing Classes:
URLTemplateComposerImpl

public interface URLTemplateComposer

This interface provides methods to generate URL templates.

The generated templates will be transmitted to Producers (or respectively portlets) that are willing to properly write URLs for a Consumer. (With templates the Consumer indicates how it needs URLs formatted in order to process them properly.)

Author:
Stefan Behl, Benjamin Mestrallet

Method Summary
 java.lang.String createBlockingActionTemplate(java.lang.String path)
          Creates a blocking action template.
 java.lang.String createDefaultTemplate(java.lang.String path)
          Creates a default template.
 java.lang.String createRenderTemplate(java.lang.String path)
          Creates a render template.
 java.lang.String createResourceTemplate(java.lang.String path)
          Creates a resource template.
 java.lang.String createSecureBlockingActionTemplate(java.lang.String path)
          Creates a secure blocking action template.
 java.lang.String createSecureDefaultTemplate(java.lang.String path)
          Creates a secure default template.
 java.lang.String createSecureRenderTemplate(java.lang.String path)
          Creates a secure render template.
 java.lang.String createSecureResourceTemplate(java.lang.String path)
          Creates a secure resource template.
 java.lang.String getNamespacePrefix()
          Get the consumers namespace prefix which is used by the portlet to namespace tokens which need to be unique on a aggregated page.
 void setHost(java.lang.String host)
           
 void setPort(int port)
           
 

Method Detail

setHost

void setHost(java.lang.String host)

setPort

void setPort(int port)

createBlockingActionTemplate

java.lang.String createBlockingActionTemplate(java.lang.String path)
Creates a blocking action template. Includes tokens for url-type, portletMode, navigationalState, interactionState and windowState to be replaced by the producer.

Parameters:
path -
Returns:
String representing the entire template.

createSecureBlockingActionTemplate

java.lang.String createSecureBlockingActionTemplate(java.lang.String path)
Creates a secure blocking action template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState and secureURL to be replaced by the producer.

Returns:
String representing the entire template.

createRenderTemplate

java.lang.String createRenderTemplate(java.lang.String path)
Creates a render template. Includes tokens for url-type, portletMode, navigationalState, interactionState and windowState to be replaced by the producer.

Returns:
String representing the entire template.

createSecureRenderTemplate

java.lang.String createSecureRenderTemplate(java.lang.String path)
Creates a secure render template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState and secureURL to be replaced by the producer.

Returns:
String representing the entire template.

createResourceTemplate

java.lang.String createResourceTemplate(java.lang.String path)
Creates a resource template. Includes tokens for url-type, rewriteResource and url to be replaced by the producer.

Returns:
String representing the entire template.

createSecureResourceTemplate

java.lang.String createSecureResourceTemplate(java.lang.String path)
Creates a secure resource template. Includes tokens for url-type, url, rewriteResource, and secureURL to be replaced by the producer.

Returns:
String representing the entire template.

createDefaultTemplate

java.lang.String createDefaultTemplate(java.lang.String path)
Creates a default template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState, url, rewriteResource and secureURL to be replaced by the producer.

Returns:
String representing the entire template.

createSecureDefaultTemplate

java.lang.String createSecureDefaultTemplate(java.lang.String path)
Creates a secure default template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState, url, rewriteResource and secureURL to be replaced by the producer.

Returns:
String representing the entire template.

getNamespacePrefix

java.lang.String getNamespacePrefix()
Get the consumers namespace prefix which is used by the portlet to namespace tokens which need to be unique on a aggregated page.

Returns:
The namespace prefix of the consumer.


Copyright © 2011 eXo Platform SAS. All Rights Reserved.