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