I'm not a expert in the driver implentation but what I would suggest is
to simply change the setSecure() method. If you don't care about the
setSecure() (i.e. you always run under https anyway), then just comment
out the "throw new PortletSecurityException" line. If you do, then
you'll have to change PortalURL implementation to support it... AFAIK,
setSecure() just changes the protocol in PortalURL from http to https...
simple enough. :)
Pavel
Hopf, Jeremy R wrote:
Thanks for responding so quick.
We were using the class below from pluto and the setSecure() method throws an
exception now and did not in 1.1.2 and the isSecureSupported() always returns
false and it did not exists in 1.1.2.
public class PortletURLProviderImpl implements PortletURLProvider { private PortalURL
url; private String window; public PortletURLProviderImpl(HttpServletRequest
request, PortletWindow internalPortletWindow) {
PortalRequestContext ctx = (PortalRequestContext)
request.getAttribute(PortalRequestContext.REQUEST_KEY); url =
ctx.createPortalURL(); this.window = internalPortletWindow.getId().getStringId();
} public void setPortletMode(PortletMode mode) { url.setPortletMode(window,
mode); } public void setWindowState(WindowState state) {
url.setWindowState(window, state); } public void setAction(boolean action) {
if (action) { url.setActionWindow(window); } else {
url.setActionWindow(null); } } public void setSecure() throws
PortletSecurityException { throw new PortletSecurityException("No
Supported"); } public boolean isSecureSupported() { return false; }
public void clearParameters() { url.clearParameters(window); } public void
setParameters(Map parameters) { Iterator it = parameters.entrySet().iterator();
while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next();
PortalURLParameter param = new PortalURLParameter( window,
(String) entry.getKey(), (String[]) entry.getValue());
url.addParameter(param); } } public String toString() { return
url.toString(); } }
On 12/6/07 11:33 AM, "Pavel" <[EMAIL PROTECTED]> wrote:
Hi Jeremy,
Isn't PortletURLProviderImpl implemented by you? What error/exception
are you getting (with stacktrace)?
--
Pavel
Hopf, Jeremy R wrote:
In pluto 1.1.2 I can run it using ssl however in 1.1.4 I get an error from
PortletURLProviderImpl. Why was this changed and what would it take to run
1.1.4 using ssl?
Jeremy