Skip to content

Package: WebEndpoint

WebEndpoint

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.Retention;
16: import java.lang.annotation.ElementType;
17: import java.lang.annotation.RetentionPolicy;
18:
19: /**
20: * Used to annotate the <code>get<em>PortName</em>()</code>
21: * methods of a generated service interface.
22: *
23: * <p>The information specified in this annotation is sufficient
24: * to uniquely identify a {@code wsdl:port} element
25: * inside a {@code wsdl:service}. The latter is
26: * determined based on the value of the {@code WebServiceClient}
27: * annotation on the generated service interface itself.
28: *
29: * @since 1.6, JAX-WS 2.0
30: *
31: * @see jakarta.xml.ws.WebServiceClient
32: **/
33: @Target({ElementType.METHOD})
34: @Retention(RetentionPolicy.RUNTIME)
35: @Documented
36: public @interface WebEndpoint {
37: /**
38: * The local name of the endpoint.
39: *
40: * @return ocal name of the endpoint
41: **/
42: String name() default "";
43: }