|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wsrp4j.producer.provider.driver.URLComposerImpl
This class implements the URLComposer interface providing methods to generate URLs or namespace tokens.
There are two kinds of methods:
Method Summary | |
java.lang.String |
createBlockingActionURL(java.lang.String portletMode,
java.lang.String navigationalState,
java.lang.String interactionState,
java.lang.String windowState,
boolean secureURL,
RuntimeContext runtimeContext,
PortletContext portletContext,
UserContext userContext)
creates a rewrite blocking-action-url |
java.lang.String |
createNamespacedToken(java.lang.String token,
RuntimeContext runtimeContext)
creates a namespaced token |
java.lang.String |
createRenderURL(java.lang.String portletMode,
java.lang.String navigationalState,
java.lang.String windowState,
boolean secureURL,
RuntimeContext runtimeContext,
PortletContext portletContext,
UserContext userContext)
creates a rewrite render-url |
java.lang.String |
createResourceURL(java.lang.String url,
boolean rewriteResource,
boolean secureURL,
RuntimeContext runtimeContext,
PortletContext portletContext,
UserContext userContext)
creates a rewrite resource-url |
static URLComposerImpl |
getInstance(Provider provider)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static URLComposerImpl getInstance(Provider provider)
public java.lang.String createBlockingActionURL(java.lang.String portletMode, java.lang.String navigationalState, java.lang.String interactionState, java.lang.String windowState, boolean secureURL, RuntimeContext runtimeContext, PortletContext portletContext, UserContext userContext)
createBlockingActionURL
in interface URLComposer
portletMode
- navigationalState
- interactionState
- windowState
- secureURL
- runtimeContext
- portletContext
- userContext
-
public java.lang.String createRenderURL(java.lang.String portletMode, java.lang.String navigationalState, java.lang.String windowState, boolean secureURL, RuntimeContext runtimeContext, PortletContext portletContext, UserContext userContext)
createRenderURL
in interface URLComposer
portletMode
- The portlet mode to be inserted into the parameter
string of the url.navigationalState
- The navigational state to be inserted into the
parameter string of the url.windowState
- The window State to be inserted into the parameter
string of the url.secureURL
- Boolean flag indicating if secure
communications should be used when activating
the link.runtimeContext
- The RuntimeContext
object from the
wsrp request. Passing a null results in url's wich
require consumer rewriting.portletContext
- If a portlet context is passed with a valid portlet handle
then this handle is used to be inserted in the url only
if the runtimecontext contained a valid render or default template.public java.lang.String createResourceURL(java.lang.String url, boolean rewriteResource, boolean secureURL, RuntimeContext runtimeContext, PortletContext portletContext, UserContext userContext)
createResourceURL
in interface URLComposer
url
- Provides the actual url to the resource.rewriteResource
- Boolean flag informing the Consumer that the
resource needs to be parsed for URL rewriting.secureURL
- Boolean flag indicating whether secure
communications should be used when activating
the link.runtimeContext
- The RuntimeContext
object from the
wsrp request. Passing a null results in url's wich
require consumer rewriting.portletContext
- If a portlet context is passed with a valid portlet handle
then this handle is used to be inserted in the url only
if the runtimecontext contained a valid resource or default template.public java.lang.String createNamespacedToken(java.lang.String token, RuntimeContext runtimeContext)
createNamespacedToken
in interface URLComposer
token
- Token to be namespaced.runtimeContext
- A RuntimeContext
with a valid namespaceprefix or null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |