KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > transports > Transport


1 package org.objectweb.celtix.transports;
2
3 import java.io.IOException JavaDoc;
4
5 import javax.xml.ws.handler.MessageContext;
6
7 import org.objectweb.celtix.context.OutputStreamMessageContext;
8
9
10 /**
11  * Transport
12  * @author dkulp
13  *
14  */

15 public interface Transport {
16     
17     /**
18      * Shutdown the <code>Transport</code>.
19      */

20     void shutdown();
21
22     /**
23      * Create a context from which an OutputStream for the Transport can
24      * be obtained.
25      * @param context The associated MessageContext.
26      * @return the context that will be used to obtain the OutputStream
27      * @throws IOException If there is an error creating the context.
28      */

29     OutputStreamMessageContext createOutputStreamContext(MessageContext context)
30         throws IOException JavaDoc;
31     
32     /**
33      * Prepare the OutputStream context before writing.
34      * @param context The <code>OutputStreamMessageContext</code> to prepare.
35      * @throws IOException If there is an error preparing the context.
36      */

37     void finalPrepareOutputStreamContext(OutputStreamMessageContext context)
38         throws IOException JavaDoc;
39 }
40
Popular Tags