Examples of cgiAdaptorURL()


Examples of com.webobjects.appserver.WOApplication.cgiAdaptorURL()

                if (app.hostAddress().getHostAddress().equals("127.0.0.1")) {
                    // probably not connected to internet
                    return "testing_mode"; //just so we can see this method working
                } 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
                    }
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.cgiAdaptorURL()

                if (app.hostAddress().getHostAddress().equals("127.0.0.1")) {
                    // probably not connected to internet
                    return "testing_mode"; //just so we can see this method working
                } 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
                    }
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.cgiAdaptorURL()

                }

            }
        } else {
            // we're running the app in a deployment or testing mode
            notURL.append(app.cgiAdaptorURL()).append("://"); // http://host/cgi-bin/WebObjects
            notURL.append('/').append(context().request().applicationName()).append(".woa/"); // /applicationName.woa/
            notURL.append(context().request().applicationNumber()); // app instance number (for routing with multiple instances running)
            notURL.append("/wa/PayPalAction/ipn"); // our processing action
        }
        NSLog.debug.appendln("defaultNotificationURL: " + notURL.toString());
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.cgiAdaptorURL()

    // WOContext's URL absolute, and it is then unable to render relative paths. (Long story short.)
    //
    // Note: If you configured the adaptor's WebObjectsAlias to something other than the default,
    // make sure to also set your WOAdaptorURL property to match.  Otherwise, asking the new context
    // the path to a direct action or component action URL will give an incorrect result.
    String requestUrl = app.cgiAdaptorURL() + "/" + app.name() + app.applicationExtension();
    try {
      URL url = new URL(requestUrl);
      requestUrl = url.getPath(); // Get just the part of the URL that is relative to the server root.
    } catch (MalformedURLException mue) {
      // The above should never fail.  As a last resort, using the empty string will
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.