} else {
//get protocol
String protocol = app.cgiAdaptorURL().substring(0, app.cgiAdaptorURL().indexOf(":"));
notURL.append(protocol).append("://"); // http:// or https://
notURL.append(app.hostAddress().getHostAddress()); // host i.p.
if (app.port().intValue() != 80) { // 80 is standard web port
notURL.append(':').append(app.port()); // :portNum
}
notURL.append(context().request().adaptorPrefix()).append('/'); // cgi-bin/WebObjects/
notURL.append(context().request().applicationName()).append(".woa/wa/PayPalAction/ipn"); // our processing action
}