|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.consumer.app.driver.URLTemplateComposerImpl
This class implements the URLTemplateComposer interface providing 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.)
| Field Summary | |
private static URLTemplateComposer |
instance
|
private URLGenerator |
urlGenerator
|
| Constructor Summary | |
private |
URLTemplateComposerImpl()
|
| Method Summary | |
java.lang.String |
createBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a blocking action template. |
java.lang.String |
createDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a default template. |
java.lang.String |
createRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a render template. |
java.lang.String |
createResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a resource template. |
java.lang.String |
createSecureBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a secure blocking action template. |
java.lang.String |
createSecureDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a secure default template. |
java.lang.String |
createSecureRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a secure render template. |
java.lang.String |
createSecureResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
Creates a secure resource template. |
private java.lang.String |
createTemplate(java.lang.String url,
boolean needsURLType,
boolean needsPortletMode,
boolean needsNavState,
boolean needsInteractionState,
boolean needsWinState,
boolean needsSecURL,
boolean needsURL,
boolean needsRewriteResource,
boolean needsPortletHandle,
boolean needsUserContextKey,
boolean needsPortletInstanceKey,
boolean needsSessionID)
|
static URLTemplateComposer |
getInstance()
|
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. |
private java.lang.String |
insertPair(java.lang.String token)
|
void |
setURLGenerator(URLGenerator urlGenerator)
Sets the url generator to be used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static URLTemplateComposer instance
private URLGenerator urlGenerator
| Constructor Detail |
private URLTemplateComposerImpl()
| Method Detail |
public static URLTemplateComposer getInstance()
public void setURLGenerator(URLGenerator urlGenerator)
setURLGenerator in interface URLTemplateComposer
public java.lang.String createBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createBlockingActionTemplate in interface URLTemplateComposer
public java.lang.String createSecureBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createSecureBlockingActionTemplate in interface URLTemplateComposer
public java.lang.String createRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createRenderTemplate in interface URLTemplateComposer
public java.lang.String createSecureRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createSecureRenderTemplate in interface URLTemplateComposer
public java.lang.String createResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createResourceTemplate in interface URLTemplateComposer
public java.lang.String createSecureResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createSecureResourceTemplate in interface URLTemplateComposer
public java.lang.String createDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createDefaultTemplate in interface URLTemplateComposer
public java.lang.String createSecureDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
URLTemplateComposer
createSecureDefaultTemplate in interface URLTemplateComposerpublic java.lang.String getNamespacePrefix()
URLTemplateComposer
getNamespacePrefix in interface URLTemplateComposer
private java.lang.String createTemplate(java.lang.String url,
boolean needsURLType,
boolean needsPortletMode,
boolean needsNavState,
boolean needsInteractionState,
boolean needsWinState,
boolean needsSecURL,
boolean needsURL,
boolean needsRewriteResource,
boolean needsPortletHandle,
boolean needsUserContextKey,
boolean needsPortletInstanceKey,
boolean needsSessionID)
private java.lang.String insertPair(java.lang.String token)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||