1 // IDL schema definition for Web server interface.
4 typedef sequence
<octet
> Chunk_Type
;
6 interface Content_Iterator
8 boolean next_chunk
(in unsigned long long offset
,
10 // This operation returns the next <chunk> of the
11 // file starting at <offset>. If there are
12 // no more bindings, false is returned.
15 // This operation destroys the iterator.
18 exception Error_Result
{
19 // Status of the <get_iterator> operation. These
20 // values should map onto the normal HTTP
21 // status values, e.g., 200 means success, 404
22 // means "file not found," etc.
28 string modification_date
;
35 interface Iterator_Factory
37 void get_iterator
(in string pathname
,
38 out Content_Iterator contents
,
39 out Metadata_Type metadata
)
40 raises
(Error_Result
);
41 // This factory method returns a <Content_Iterator> that
42 // can be used to read the <contents> associated with
43 // <pathname> one ``chunk'' at a time. The <metadata>
44 // reports information about the <contents>.