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

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

public class URLTemplateComposerImpl
extends java.lang.Object
implements URLTemplateComposer


Field Summary
static java.lang.String NON_SECURE_PROTOCOL
           
static java.lang.String SECURE_PROTOCOL
           
 
Constructor Summary
URLTemplateComposerImpl()
           
 
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)
           
 
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 java.lang.String SECURE_PROTOCOL
See Also:
Constant Field Values

NON_SECURE_PROTOCOL

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

URLTemplateComposerImpl

public URLTemplateComposerImpl()
Method Detail

setHost

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

setPort

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

createBlockingActionTemplate

public java.lang.String createBlockingActionTemplate(java.lang.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 java.lang.String createSecureBlockingActionTemplate(java.lang.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 java.lang.String createRenderTemplate(java.lang.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 java.lang.String createSecureRenderTemplate(java.lang.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 java.lang.String createResourceTemplate(java.lang.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 java.lang.String createSecureResourceTemplate(java.lang.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 java.lang.String createDefaultTemplate(java.lang.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 java.lang.String createSecureDefaultTemplate(java.lang.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 java.lang.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 © 2010 eXo Platform SAS. All Rights Reserved.