8
|
1 |
/*
|
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
3 |
*
|
|
4 |
* This code is free software; you can redistribute it and/or modify it
|
|
5 |
* under the terms of the GNU General Public License version 2 only, as
|
|
6 |
* published by the Free Software Foundation. Sun designates this
|
|
7 |
* particular file as subject to the "Classpath" exception as provided
|
|
8 |
* by Sun in the LICENSE file that accompanied this code.
|
|
9 |
*
|
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
14 |
* accompanied this code).
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License version
|
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
19 |
*
|
|
20 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
21 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
22 |
* have any questions.
|
|
23 |
*/
|
|
24 |
|
|
25 |
/*
|
|
26 |
* Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
|
|
27 |
*/
|
|
28 |
|
|
29 |
package javax.jws;
|
|
30 |
|
|
31 |
import java.lang.annotation.Retention;
|
|
32 |
import java.lang.annotation.RetentionPolicy;
|
|
33 |
import java.lang.annotation.Target;
|
|
34 |
import java.lang.annotation.ElementType;
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Associates the Web Service with an externally defined handler chain. This annotation is typically used in scenarios
|
|
38 |
* where embedding the handler configuration directly in the Java source is not appropriate; for example, where the
|
|
39 |
* handler configuration needs to be shared across multiple Web Services, or where the handler chain consists of
|
|
40 |
* handlers for multiple transports.
|
|
41 |
*
|
|
42 |
* It is an error to combine this annotation with the @SOAPMessageHandlers annotation.
|
|
43 |
*
|
|
44 |
* @author Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
|
|
45 |
*/
|
|
46 |
@Retention(value = RetentionPolicy.RUNTIME)
|
|
47 |
@Target(value = {ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
|
|
48 |
public @interface HandlerChain {
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Location of the handler chain file.
|
|
52 |
* <p>
|
|
53 |
* The location supports 2 formats:
|
|
54 |
* <ol>
|
|
55 |
* <li>An absolute java.net.URL in externalForm (ex: http://myhandlers.foo.com/handlerfile1.xml).
|
|
56 |
* <li>A relative path from the source file or class file (ex: bar/handlerfile1.xml).
|
|
57 |
* </ol>
|
|
58 |
*/
|
|
59 |
String file();
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Name of the handler chain in the configuration file
|
|
63 |
*
|
|
64 |
* @deprecated As of JSR-181 2.0 with no replacement.
|
|
65 |
*/
|
|
66 |
@Deprecated String name() default "";
|
|
67 |
};
|