01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws;
07:
08: /** The <code>Binding</code> interface is the base interface
09: * for JAX-WS protocol bindings.
10: *
11: * @since JAX-WS 2.0
12: **/
13: public interface Binding {
14:
15: /**
16: * Gets a copy of the handler chain for a protocol binding instance.
17: * If the returned chain is modified a call to <code>setHandlerChain</code>
18: * is required to configure the binding instance with the new chain.
19: *
20: * @return java.util.List<Handler> Handler chain
21: */
22: public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
23:
24: /**
25: * Sets the handler chain for the protocol binding instance.
26: *
27: * @param chain A List of handler configuration entries
28: * @throws WebServiceException On an error in the configuration of
29: * the handler chain
30: * @throws java.lang.UnsupportedOperationException If this
31: * operation is not supported. This may be done to
32: * avoid any overriding of a pre-configured handler
33: * chain.
34: */
35: public void setHandlerChain(
36: java.util.List<javax.xml.ws.handler.Handler> chain);
37:
38: /**
39: * Get the URI for this binding instance.
40: *
41: * @return String The binding identifier for the port.
42: * Never returns <code>null</code>
43: *
44: * @since JAX-WS 2.1
45: */
46: String getBindingID();
47: }
|