user manual

Chapter 8: Apache web server to CORBA server connectivity 79
Web-enabling your CORBA server
string name;
string value;
};
typedef sequence<NameValue> NVList;
typedef sequence<octet> OctetSequence_t;
struct HttpRequest {
string authType; // auth type
(BASIC,FORM etc)
string userid; // username
associated with request
string appName; // application name
(context path)
string httpMethod; // PUT, GET etc,
string httpProtocol; // protocol HTTP/1.0, HTTP/
1.1 etc
string uri; // URI associated
with request
string args; // query string
associated with this request
string postData; // POST (form) data
associated with request
boolean isSecure; // whether client
specified https or http
string serverHostname; // server hostname
specified with URI
string serverAddr; // [optionally]
server IP address specified with URI
long serverPort; // server port
number specified with URI
NVList headers; // headers
associated with this request format: header-name:value
};
struct HttpResponse {
long status; // HTTP status, OK etc.
boolean isCommit; // server intends to commit
this request
NVList headers; // header array
OctetSequence_t data; // data buffer
};
interface ReqProcessor {
HttpResponse process(in HttpRequest req);
};
};
The process() method
The ReqProcessor IDL includes the process() method which your Apache web
server calls for internet requests. The web server passes the user's request as
an argument to the process() method. Basically, the input for the process()