|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.portal.wsrp.consumer.URLTemplateComposerImpl
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 | |
protected WSRPAdapter |
adapter
The wsrp adapter. |
protected org.apache.wsrp4j.consumer.URLGenerator |
urlGenerator
The url generator. |
Constructor Summary | |
URLTemplateComposerImpl()
|
Method Summary | |
String |
createBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createSecureBlockingActionTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createSecureDefaultTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createSecureRenderTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
String |
createSecureResourceTemplate(boolean includePortletHandle,
boolean includeUserContextKey,
boolean includePortletInstanceKey,
boolean includeSessionID)
|
protected String |
createTemplate(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)
creates the url for the producer |
String |
getNamespacePrefix()
|
protected String |
insertPair(String token)
creates a pair of an attribute |
void |
setURLGenerator(org.apache.wsrp4j.consumer.URLGenerator urlGenerator)
|
void |
setWSRPAdapter(WSRPAdapter adapter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.wsrp4j.consumer.URLGenerator urlGenerator
protected WSRPAdapter adapter
Constructor Detail |
public URLTemplateComposerImpl()
Method Detail |
public void setWSRPAdapter(WSRPAdapter adapter)
setWSRPAdapter
in interface RequiresWSRPAdapter
RequiresWSRPAdapter.setWSRPAdapter(org.apache.cocoon.portal.wsrp.adapter.WSRPAdapter)
public void setURLGenerator(org.apache.wsrp4j.consumer.URLGenerator urlGenerator)
setURLGenerator
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.setURLGenerator(org.apache.wsrp4j.consumer.URLGenerator)
public String createBlockingActionTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createBlockingActionTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createBlockingActionTemplate(boolean, boolean, boolean, boolean)
public String createSecureBlockingActionTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createSecureBlockingActionTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createSecureBlockingActionTemplate(boolean, boolean, boolean, boolean)
public String createRenderTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createRenderTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createRenderTemplate(boolean, boolean, boolean, boolean)
public String createSecureRenderTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createSecureRenderTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createSecureRenderTemplate(boolean, boolean, boolean, boolean)
public String createResourceTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createResourceTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createResourceTemplate(boolean, boolean, boolean, boolean)
public String createSecureResourceTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createSecureResourceTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createSecureResourceTemplate(boolean, boolean, boolean, boolean)
public String createDefaultTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createDefaultTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createDefaultTemplate(boolean, boolean, boolean, boolean)
public String createSecureDefaultTemplate(boolean includePortletHandle, boolean includeUserContextKey, boolean includePortletInstanceKey, boolean includeSessionID)
createSecureDefaultTemplate
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.createSecureDefaultTemplate(boolean, boolean, boolean, boolean)
public String getNamespacePrefix()
getNamespacePrefix
in interface org.apache.wsrp4j.consumer.URLTemplateComposer
URLTemplateComposer.getNamespacePrefix()
protected String createTemplate(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)
url
- needsURLType
- needsPortletMode
- needsNavState
- needsInteractionState
- needsWinState
- needsSecURL
- needsURL
- needsRewriteResource
- needsPortletHandle
- needsUserContextKey
- needsPortletInstanceKey
- needsSessionID
-
protected String insertPair(String token)
token
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |