Package com.webobjects.appserver

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


    }

    protected String id() {
        WOApplication app = WOApplication.application();
        String host = app.host();
        Number port = app.port();
        String appName = app.name();
        return host + ":" + port + "/" + appName;
    }

    public synchronized void initialize(NSNotification notification) {
View Full Code Here


          String appName = app.name();
          if (appName != null) {
            _appInfo.setObjectForKey(appName, "appName");
          }

          if (app.port() != null && app.port().intValue() > 0) {
            _appInfo.setObjectForKey(app.port().toString(), "portNumber");
          }
          else {
            // WO 5.1.x -- Apple Ref# 2260519
            NSArray adaptors = app.adaptors();
View Full Code Here

          String appName = app.name();
          if (appName != null) {
            _appInfo.setObjectForKey(appName, "appName");
          }

          if (app.port() != null && app.port().intValue() > 0) {
            _appInfo.setObjectForKey(app.port().toString(), "portNumber");
          }
          else {
            // WO 5.1.x -- Apple Ref# 2260519
            NSArray adaptors = app.adaptors();
View Full Code Here

          if (appName != null) {
            _appInfo.setObjectForKey(appName, "appName");
          }

          if (app.port() != null && app.port().intValue() > 0) {
            _appInfo.setObjectForKey(app.port().toString(), "portNumber");
          }
          else {
            // WO 5.1.x -- Apple Ref# 2260519
            NSArray adaptors = app.adaptors();
            if (adaptors != null && adaptors.count() > 0) {
View Full Code Here

    private transient int _entryCount = 0;

    public ERCNSnapshot(NSNotification notification) {
        WOApplication app = WOApplication.application();
        _senderHost = app.host();
        _senderPort = app.port(); // Don't forget to apply Max's change
        _senderAppName = app.name();

        NSDictionary userInfo = notification.userInfo();

        ERCNConfiguration configuration = ERCNNotificationCoordinator.coordinator().configuration();
View Full Code Here

                } 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
                }
View Full Code Here

                    //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
                }
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.