View Javadoc

1   package org.codehaus.xfire.service;
2   
3   import javax.wsdl.WSDLException;
4   
5   import org.codehaus.xfire.fault.FaultHandler;
6   import org.codehaus.xfire.fault.FaultHandlerPipeline;
7   import org.codehaus.xfire.handler.Handler;
8   import org.codehaus.xfire.handler.HandlerPipeline;
9   import org.codehaus.xfire.soap.SoapVersion;
10  import org.codehaus.xfire.wsdl.WSDLWriter;
11  
12  /***
13   * A service descriptor. This class must be thread safe.
14   * 
15   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
16   */
17  public interface Service
18  {
19      String ROLE = Service.class.getName();
20  
21      WSDLWriter getWSDLWriter() throws WSDLException;
22  
23      Handler getServiceHandler();
24      
25      HandlerPipeline getRequestPipeline();
26      
27      HandlerPipeline getResponsePipeline();
28      
29      FaultHandlerPipeline getFaultPipeline();
30      
31      /***
32       * The fault handler which handles exception which occur during 
33       * processing.
34       * @return
35       */
36      FaultHandler getFaultHandler();
37      
38      /***
39       * Return the service style.  Can be document, rpc, wrapped, or message.
40       * @return
41       */
42      String getStyle();
43  
44      /***
45       * Return the Use.  Messages can be encoded or literal.
46       * @return
47       */
48      String getUse();
49  
50      /***
51       * The name of the service. This must be URI encodable.
52       */
53      String getName();
54  
55      /***
56       * The namespace of the service.
57       * 
58       * @return
59       */
60      String getDefaultNamespace();
61  
62      void setProperty(String name, Object value);
63  
64      Object getProperty(String name);
65      
66      SoapVersion getSoapVersion();
67  }