Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Content_Server / AMI_Observer / Push_Web_Server.idl
blob267a677c4e850547ec53a5ac968285bcdfe14b2f
1 module Web_Server
2 // = TITLE
3 // IDL schema definition for Web server interface.
5 typedef sequence<octet> Chunk_Type;
7 interface Callback
9 // This operation is called back by the server to pass
10 // the next <chunk> of the file starting. If there are
11 // no more chunks, <last_chunk> is true.
12 void next_chunk (in Chunk_Type chunk,
13 in boolean last_chunk);
16 exception Error_Result
18 // Status of the <register_callback> operation. These
19 // values should map onto the normal HTTP
20 // status values, e.g., 200 means success, 404
21 // means "file not found," etc.
22 short status;
25 struct Metadata_Type
27 // Modification date.
28 string modification_date;
30 // Type of content.
31 string content_type;
34 interface Iterator_Factory
36 // This registration method passes a <Callback> that
37 // the Web server uses to ``push'' data associated with
38 // <pathname> one ``chunk'' at a time. The <metadata>
39 // reports information about the <pathname>.
40 Metadata_Type register_callback (in string pathname,
41 in Callback client_callback)
42 raises (Error_Result);