Returns an IRemoteSession
, which is a way to call the portal’s remote API to query information and perform actions on the portal.
An IRemoteSession object.
The IRemoteSession
passed back will be initialized with a login token and endpoint URL sent by the portal. Because it is using a login token, the Remote Session will have the same security context in the portal as the user of the portlet. Note: The login token and endpoint URL are only sent in version 5.0 and above. The administrator must configure the portal to send the login token to a portlet.
Exception Type | Condition |
---|---|
NotGatewayedException | The request is not gatewayed. |
ProtocolNotSupportedException | Used with a portal version earlier than 5.0. |
NotInRequestException | The administrator has chosen not to send the login token to this portlet. |
HttpException | The endpoint URL is not valid. |
IPortletContext Interface | Plumtree.Remote.Portlet Namespace