com.sapportals.portal.pb.utils
Class URLGenerator

java.lang.Object
  |
  +--com.sapportals.portal.pb.utils.URLGenerator
All Implemented Interfaces:
com.sapportals.portal.prt.component.IPortalComponentURI

public class URLGenerator
extends java.lang.Object
implements com.sapportals.portal.prt.component.IPortalComponentURI


Field Summary
protected static com.sapportals.common.PPLogger LOGGER
           
protected  com.sapportals.portal.prt.component.IPortalComponentURI m_componentURI
           
protected  java.lang.String m_contextName
           
protected  boolean m_newConnectionPoint
           
protected  com.sapportals.portal.prt.pom.NodeMode m_nodeMode
           
protected  com.sapportals.portal.prt.component.IPortalComponentRequest m_request
           
protected  com.sapportals.portal.prt.event.IPortalRequestEvent m_requestEvent
           
protected  com.sapportals.portal.prt.connection.IPortalURLBuilder m_urlBuilder
           
 
Constructor Summary
URLGenerator(com.sapportals.portal.prt.component.IPortalComponentRequest request, boolean newConnectionPoint, java.lang.String requiredConnectionPoint, java.lang.String contextName)
           
 
Method Summary
static RequestParamsContainer createURLParamList(java.lang.String iViewParamList, com.sapportals.portal.prt.component.IPortalComponentRequest request)
          getComponentURLParameters Returns all of the parameters from the request that the iView need to run.
 java.lang.String getContextName()
           
 com.sapportals.portal.prt.pom.NodeMode getNodeMode()
           
 com.sapportals.portal.prt.event.IPortalRequestEvent getPortalRequestEvent()
           
 com.sapportals.portal.prt.pom.INode getTargetNode()
           
 void setContextName(java.lang.String newContext)
           
 void setNodeMode(com.sapportals.portal.prt.pom.NodeMode nodeMode)
           
 void setPortalRequestEvent(com.sapportals.portal.prt.event.IPortalRequestEvent portalRequestEvent)
           
 void setTargetNode(com.sapportals.portal.prt.pom.INode targetNode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_componentURI

protected com.sapportals.portal.prt.component.IPortalComponentURI m_componentURI

m_urlBuilder

protected com.sapportals.portal.prt.connection.IPortalURLBuilder m_urlBuilder

m_newConnectionPoint

protected boolean m_newConnectionPoint

m_contextName

protected java.lang.String m_contextName

m_nodeMode

protected com.sapportals.portal.prt.pom.NodeMode m_nodeMode

m_request

protected com.sapportals.portal.prt.component.IPortalComponentRequest m_request

m_requestEvent

protected com.sapportals.portal.prt.event.IPortalRequestEvent m_requestEvent

LOGGER

protected static com.sapportals.common.PPLogger LOGGER
Constructor Detail

URLGenerator

public URLGenerator(com.sapportals.portal.prt.component.IPortalComponentRequest request,
                    boolean newConnectionPoint,
                    java.lang.String requiredConnectionPoint,
                    java.lang.String contextName)
Method Detail

createURLParamList

public static RequestParamsContainer createURLParamList(java.lang.String iViewParamList,
                                                        com.sapportals.portal.prt.component.IPortalComponentRequest request)
getComponentURLParameters Returns all of the parameters from the request that the iView need to run. The iView notify which params to add through the iViewParamList (retrieved from the profile of the iView). If the list is '*' then all of the parameters are added to the URL, otherwise only parameters that are in the list will be extracted from the request one by one.
Parameters:
iViewParamList - String of parameters needed by the iView.
request - The request that is being processed.
allRequestParamNames - Enumeration of all parameters that are in the Portal request.
Returns:
String to be added to the URL with the parameters for the iView.

setPortalRequestEvent

public void setPortalRequestEvent(com.sapportals.portal.prt.event.IPortalRequestEvent portalRequestEvent)
Specified by:
setPortalRequestEvent in interface com.sapportals.portal.prt.component.IPortalComponentURI

getPortalRequestEvent

public com.sapportals.portal.prt.event.IPortalRequestEvent getPortalRequestEvent()
Specified by:
getPortalRequestEvent in interface com.sapportals.portal.prt.component.IPortalComponentURI

setContextName

public void setContextName(java.lang.String newContext)
Specified by:
setContextName in interface com.sapportals.portal.prt.component.IPortalComponentURI

getContextName

public java.lang.String getContextName()
Specified by:
getContextName in interface com.sapportals.portal.prt.component.IPortalComponentURI

setTargetNode

public void setTargetNode(com.sapportals.portal.prt.pom.INode targetNode)
Specified by:
setTargetNode in interface com.sapportals.portal.prt.component.IPortalComponentURI

getTargetNode

public com.sapportals.portal.prt.pom.INode getTargetNode()
Specified by:
getTargetNode in interface com.sapportals.portal.prt.component.IPortalComponentURI

setNodeMode

public void setNodeMode(com.sapportals.portal.prt.pom.NodeMode nodeMode)
Specified by:
setNodeMode in interface com.sapportals.portal.prt.component.IPortalComponentURI

getNodeMode

public com.sapportals.portal.prt.pom.NodeMode getNodeMode()
Specified by:
getNodeMode in interface com.sapportals.portal.prt.component.IPortalComponentURI

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object