|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortalRequest
An implementation of IPortalRequest must be provided by a Portal Connection.
It abstracts the request data needed by the PRT core.
Furthermore, a connection can intercept in the output provision of the
runtime by specifying an implementation of an IDocumentHook.
Copyright (c) SAP Portals Europe GmbH 2001
| Field Summary | |
|---|---|
static char |
NODE_SEPARATOR
The NODE_SEPARATOR character is used as a separator between node names in node path information. |
| Method Summary | |
|---|---|
String |
createResourceURL(IResourceInformation ri)
Creates a resource url based on a Resource information |
String |
createURL(INode currentNode,
String rootContext,
INode targetNode,
IPortalRequestEvent event,
String extraData,
boolean encodeExtraData)
This method is called to create an URL for the portal. |
String |
createURL(INode currentNode,
String rootContext,
INode targetNode,
IPortalRequestEvent event,
String mode,
String extraData,
boolean encodeExtraData)
This method is called to create a URL for the portal. |
void |
destroy()
Destroy the request |
String |
encodeExtraData(String extraData)
Encodes the extra data parameter |
void |
end(IPortalComponentRequest request)
The end method is called when the runtime has done all request procession |
ClientType |
getClientType()
Deprecated. |
IContentExceptionHandler |
getContentExceptionHandler()
Gets the content exception handler. |
String |
getExtraURLData()
A call to this method expects extra data specified by a previous call to createURL. |
IHook |
getHook(HookType hookType)
Gets the portal hook |
Locale |
getLocale()
|
NodeMode |
getRenderMode()
Gets the mode to be assigned to the target node of the url or the node given implicitly by the root context. |
IPortalRequestEvent |
getRequestEvent(IPortalComponentRequest request)
A call to this method is supposed to return a Portal Request event if there was any information about this on the request. |
INode |
getRequestEventTarget(IPortalComponentRequest request)
Computes the target node of a request event associated with this request, if applicable. |
String |
getRequestTheme()
Deprecated. |
String |
getRequestTheme(IPortalComponentRequest request)
Theme information can generally be used to influence the rendering. |
IPortalComponentContext |
getRootContext(IPortalComponentRequest request)
Gets the root context for this request. |
String |
getRootContextName()
Gets the root context name |
ServletConfig |
getServletConfig()
A portal connection is asked to pass on a ServletConfig
implementation, carrying information on the servlet running a servlet
based connection. |
HttpServletRequest |
getServletRequest()
A Portal Connection is asked to pass on an implementation of HttpServletRequest. |
HttpServletResponse |
getServletResponse()
A Portal Connection is asked to pass on an implementation of HttpServletResponse if availabe. |
IUserContext |
getUserContext()
|
void |
setRootContextName(String rootContextName)
Sets the root context name |
| Field Detail |
|---|
static final char NODE_SEPARATOR
| Method Detail |
|---|
IContentExceptionHandler getContentExceptionHandler()
IHook getHook(HookType hookType)
String createURL(INode currentNode,
String rootContext,
INode targetNode,
IPortalRequestEvent event,
String mode,
String extraData,
boolean encodeExtraData)
currentNode - The current node taken from the requestrootContext - This parameter specifies the root context for the request triggered
by sending the URL. If set to null it should be the
current one.targetNode - The target node is the node that a specified request event should be
sent to. If set to null, the node given by the root
context should receive the event.event - The event to be passed by this URL. If set to null, no event
will be passed on.mode - The mode, that the target node should be set to. If set to null,
the default mode will be effective.extraData - The specification of core data is done by the PRT core and
its content should be carried between requests.encodeExtraData - whether the extraData needs to be encoded or not
String createURL(INode currentNode,
String rootContext,
INode targetNode,
IPortalRequestEvent event,
String extraData,
boolean encodeExtraData)
currentNode - request The current node taken from the requestrootContext - This parameter specifies the root context for the request triggered
by sending the URL. If set to null it should be the
current one.targetNode - The target node is the node that a specified request event should be
sent to. If set to null, the node given by the root
context should receive the event.event - The event to be passed by this URL. If set to null, no event
will be passed on.extraData - The specification of core data is done by the PRT core and
its content should be carried between requests.encodeExtraData - whether the extraData needs to be encoded or not
IPortalComponentContext getRootContext(IPortalComponentRequest request)
request - an implementation of IPortalComponentRequest for the portal node.
IPortalRequestEvent getRequestEvent(IPortalComponentRequest request)
null
request - an implementation of IPortalComponentRequest for the portal node.
null if there was none specifiedINode getRequestEventTarget(IPortalComponentRequest request)
null if no target
node can be found and a valid node on the first succesful call.
request - an implementation of IPortalComponentRequest for the portal node.
null if it could not be determined (yet).NodeMode getRenderMode()
String getExtraURLData()
IUserContext getUserContext()
Locale getLocale()
Locale instance to be associated with this requestClientType getClientType()
String getRequestTheme()
null if it is not
applicable.String getRequestTheme(IPortalComponentRequest request)
null if it is not
applicable.HttpServletRequest getServletRequest()
HttpServletRequest. This is needed
to provide low-level access to Portal Components if available.
HttpServletRequestHttpServletResponse getServletResponse()
HttpServletResponse if availabe. This is needed
to provide low-level access to Portal Components if available.
HttpServletResponseServletConfig getServletConfig()
ServletConfig
implementation, carrying information on the servlet running a servlet
based connection.
ServletConfigvoid end(IPortalComponentRequest request)
void destroy()
String getRootContextName()
void setRootContextName(String rootContextName)
String encodeExtraData(String extraData)
String createResourceURL(IResourceInformation ri)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||