org.exoplatform.services.wsrp2.consumer.impl
Class URLTemplateComposerImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp2.consumer.impl.URLTemplateComposerImpl
All Implemented Interfaces:
URLTemplateComposer

public class URLTemplateComposerImpl
extends Object
implements URLTemplateComposer


Field Summary
static String NON_SECURE_PROTOCOL
           
static String SECURE_PROTOCOL
           
 
Constructor Summary
URLTemplateComposerImpl()
           
 
Method Summary
 String createBlockingActionTemplate(String path)
          Creates a blocking action template.
 String createDefaultTemplate(String path)
          Creates a default template.
 String createRenderTemplate(String path)
          Creates a render template.
 String createResourceTemplate(String path)
          Creates a resource template.
 String createSecureBlockingActionTemplate(String path)
          Creates a secure blocking action template.
 String createSecureDefaultTemplate(String path)
          Creates a secure default template.
 String createSecureRenderTemplate(String path)
          Creates a secure render template.
 String createSecureResourceTemplate(String path)
          Creates a secure resource template.
 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(String host)
           
 void setPort(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURE_PROTOCOL

public static final String SECURE_PROTOCOL
See Also:
Constant Field Values

NON_SECURE_PROTOCOL

public static final String NON_SECURE_PROTOCOL
See Also:
Constant Field Values
Constructor Detail

URLTemplateComposerImpl

public URLTemplateComposerImpl()
Method Detail

setHost

public void setHost(String host)
Specified by:
setHost in interface URLTemplateComposer

setPort

public void setPort(int port)
Specified by:
setPort in interface URLTemplateComposer

createBlockingActionTemplate

public String createBlockingActionTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a blocking action template. Includes tokens for url-type, portletMode, navigationalState, interactionState and windowState to be replaced by the producer.

Specified by:
createBlockingActionTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createSecureBlockingActionTemplate

public String createSecureBlockingActionTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a secure blocking action template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState and secureURL to be replaced by the producer.

Specified by:
createSecureBlockingActionTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createRenderTemplate

public String createRenderTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a render template. Includes tokens for url-type, portletMode, navigationalState, interactionState and windowState to be replaced by the producer.

Specified by:
createRenderTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createSecureRenderTemplate

public String createSecureRenderTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a secure render template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState and secureURL to be replaced by the producer.

Specified by:
createSecureRenderTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createResourceTemplate

public String createResourceTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a resource template. Includes tokens for url-type, rewriteResource and url to be replaced by the producer.

Specified by:
createResourceTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createSecureResourceTemplate

public String createSecureResourceTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a secure resource template. Includes tokens for url-type, url, rewriteResource, and secureURL to be replaced by the producer.

Specified by:
createSecureResourceTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createDefaultTemplate

public String createDefaultTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a default template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState, url, rewriteResource and secureURL to be replaced by the producer.

Specified by:
createDefaultTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

createSecureDefaultTemplate

public String createSecureDefaultTemplate(String path)
Description copied from interface: URLTemplateComposer
Creates a secure default template. Includes tokens for url-type, portletMode, navigationalState, interactionState, windowState, url, rewriteResource and secureURL to be replaced by the producer.

Specified by:
createSecureDefaultTemplate in interface URLTemplateComposer
Returns:
String representing the entire template.

getNamespacePrefix

public String getNamespacePrefix()
Description copied from interface: URLTemplateComposer
Get the consumers namespace prefix which is used by the portlet to namespace tokens which need to be unique on a aggregated page.

Specified by:
getNamespacePrefix in interface URLTemplateComposer
Returns:
The namespace prefix of the consumer.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.