Skip to content

Package: BindingType

BindingType

Coverage

1: /*
2: * Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package jakarta.xml.ws;
12:
13: import java.lang.annotation.Documented;
14: import java.lang.annotation.Target;
15: import java.lang.annotation.ElementType;
16: import java.lang.annotation.Retention;
17: import java.lang.annotation.RetentionPolicy;
18: import jakarta.xml.ws.http.HTTPBinding;
19: import jakarta.xml.ws.soap.SOAPBinding;
20:
21: /**
22: * The {@code BindingType} annotation is used to
23: * specify the binding to use for a web service
24: * endpoint implementation class.
25: * <p>
26: * This annotation may be overridden programmatically or via
27: * deployment descriptors, depending on the platform in use.
28: *
29: * @since 1.6, JAX-WS 2.0
30: *
31: **/
32: @Target(ElementType.TYPE)
33: @Retention(RetentionPolicy.RUNTIME)
34: @Documented
35: public @interface BindingType {
36: /**
37: * A binding identifier (a URI). If not specified, the default is the SOAP 1.1 / HTTP binding.<br>
38: * See the {@link SOAPBinding} and {@link HTTPBinding}
39: * for the definition of the standard binding identifiers.
40: *
41: * @return A binding identifier (a URI)
42: * @see jakarta.xml.ws.Binding
43: * @see jakarta.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
44: * @see jakarta.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
45: * @see jakarta.xml.ws.http.HTTPBinding#HTTP_BINDING
46: */
47: String value() default "" ;
48: }