Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / Content_Server / AMI_Iterator / Web_Server.idl
blobffc7c9f13a36b3917eb47c42731943a014889d65
1 module Web_Server
2 // = TITLE
3 // IDL schema definition for Web server interface.
5 typedef sequence<octet> Chunk_Type;
7 interface Content_Iterator
9 // This operation returns the next <chunk> of the
10 // file starting at <offset>. If there are
11 // no more bindings, false is returned.
12 boolean next_chunk (in unsigned long long offset,
13 out Chunk_Type chunk);
15 // This operation destroys the iterator.
16 void destroy ();
19 exception Error_Result {
20 // Status of the <get_iterator> operation. These
21 // values should map onto the normal HTTP
22 // status values, e.g., 200 means success, 404
23 // means "file not found," etc.
24 short status;
27 struct Metadata_Type
29 // Modification date.
30 string modification_date;
32 // Type of content.
33 string content_type;
36 interface Iterator_Factory
38 // This factory method returns a <Content_Iterator> that
39 // can be used to read the <contents> associated with
40 // <pathname> one ``chunk'' at a time. The <metadata>
41 // reports information about the <contents>.
42 void get_iterator (in string pathname,
43 out Content_Iterator contents,
44 out Metadata_Type metadata)
45 raises (Error_Result);