com.cassinidivision.core.appserver
Class InterAppComms

java.lang.Object
  extended bycom.cassinidivision.core.appserver.InterAppComms

public class InterAppComms
extends Object

Utilities for sending HTTP requests to WebObject application instances. Intended for internal OCE use only.


Constructor Summary
InterAppComms()
           
 
Method Summary
static void hitAllUrls(NSArray array)
          Transmit a group of URL requests, discarding the results.
static void sendURLTo(String toSend, String appName, NSArray instanceNumbers)
          Transmit an HTTP request with the details provided to a WebObjects application instance running on the current host (localhost).
static void sendURLTo(String toSend, String appName, NSArray instanceNumbers, String host, String adaptorPrefix)
          Transmit an HTTP request with the details provided to a remote WebObjects application instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterAppComms

public InterAppComms()
Method Detail

sendURLTo

public static void sendURLTo(String toSend,
                             String appName,
                             NSArray instanceNumbers,
                             String host,
                             String adaptorPrefix)
                      throws IOException
Transmit an HTTP request with the details provided to a remote WebObjects application instance.

Parameters:
toSend - Relative direct action/session URL details for remote woa instance.
appName - Name of remote woa instance.
instanceNumbers - Array of woa instance numbers (String instances).
host - Remote host/IP details.
adaptorPrefix - Relative path to WebObjects adaptor on remote host.
Throws:
IOException

sendURLTo

public static void sendURLTo(String toSend,
                             String appName,
                             NSArray instanceNumbers)
                      throws IOException
Transmit an HTTP request with the details provided to a WebObjects application instance running on the current host (localhost).

The WebObjects adaptor relative URL is assumed to be "/cgi-bin/WebObjects".

Parameters:
toSend - Relative direct action/session URL details for remote woa instance.
appName - Name of remote woa instance.
instanceNumbers - Array of woa instance numbers (String instances).
Throws:
IOException

hitAllUrls

public static void hitAllUrls(NSArray array)
                       throws IOException
Transmit a group of URL requests, discarding the results.

Parameters:
array - NSArray of String instances containing the URL details.
Throws:
IOException