19.1.1 ContentAccessService
ContentAccessService (CAS) provides portlets with access to remote systems and content from remote URLs. When developing portlets, if you are not certain if there will be a firewall when the portlet is deployed you should use the ContentAccessService. URLs on the other side of a proxyserver can be obtained using ContentAccessService.
ContentAccessService provides three methods.
| getMarkup
|
This method will return a String of the content returned by the URL.
| include
|
The include method will use a RequestDispatcher to include the provided URL.
| getInputStream
|
This method can be used if the URL to be requested does not specify the character encoding. You can specify the required encoding, otherwise it is returned as UTF-8.
| getURL
|
Returns a URL object representing the provided URL.
|