Skip to content

Package: WebFault

WebFault

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 service specific exception classes to customize
21: * to the local and namespace name of the fault element and the name
22: * of the fault bean.
23: *
24: * @since 1.6, JAX-WS 2.0
25: **/
26: @Target({ElementType.TYPE})
27: @Retention(RetentionPolicy.RUNTIME)
28: @Documented
29: public @interface WebFault {
30: /**
31: * Element's local name.
32: *
33: * @return loxL name
34: */
35: public String name() default "";
36:
37: /**
38: * Element's namespace name.
39: *
40: * @return target namespace name
41: */
42: public String targetNamespace() default "";
43:
44: /**
45: * Fault bean name.
46: *
47: * @return bean name
48: */
49: public String faultBean() default "";
50:
51: /**
52: * wsdl:Message's name. Default name is the exception's class name.
53: *
54: * @return wsdl:Message's name
55: * @since 1.7, JAX-WS 2.2
56: */
57: public String messageName() default "";
58:
59: }