KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
9
10
11 /**
12  * ServerTransport
13  * @author dkulp
14  *
15  */

16 public interface ServerTransport extends Transport {
17     
18
19     /**
20      * activate the server transport, involves starting listeners or creating of message queues.
21      * @param callback - The call back object that the transport calls when there is a message to
22      * dispatch
23      */

24     void activate(ServerTransportCallback callback) throws IOException JavaDoc;
25
26     /**
27      * deactivate the server transport, involves stopping the listeners or message queues.
28      * subsequently the transport could be activated using activate call.
29      */

30     void deactivate() throws IOException JavaDoc;
31     
32     /**
33      * Rebase the InputStreamMessageContext on an alternative response destination.
34      *
35      * @param context the MessageContext
36      * @param decoupledResponseEndpoint the decoupled response endpoint
37      * @param an output stream message context for the original channel
38      * @throws IOException If there is an error creating the context.
39      */

40     OutputStreamMessageContext rebase(MessageContext context,
41                                       EndpointReferenceType decoupledResponseEndpoint)
42         throws IOException JavaDoc;
43     
44     /**
45      *
46      * Do the post dispatch task here.
47      */

48     void postDispatch(MessageContext bindingContext, OutputStreamMessageContext context)
49         throws IOException JavaDoc;
50    
51 }
52
Popular Tags