HandlerChain (Java EE 5)

Java EE API


javax.jws Annotation Type HandlerChain


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
public @interface HandlerChain

Implements: Annotation
@Retention(value=RUNTIME)
@Target(value={TYPE, METHOD, FIELD})

将 Web Service 与外部定义的处理程序链关联。此注释通常用于不适合将处理程序配置直接嵌入 Java 源的情况;例如,需要在多个 Web Service 之间共享处理程序配置的地方,或者处理程序链由多个传输的处理程序组成的地方。 将此注释与 @SOAPMessageHandlers 注释组合在一起是错误的。
英文文档:

Associates the Web Service with an externally defined handler chain. This annotation is typically used in scenarios where embedding the handler configuration directly in the Java source is not appropriate; for example, where the handler configuration needs to be shared across multiple Web Services, or where the handler chain consists of handlers for multiple transports. It is an error to combine this annotation with the @SOAPMessageHandlers annotation.

Author:
Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.

Required Element Summary
 String
 
Optional Element Summary
 String
 

Element Detail

abstract public String file()
处理程序链文件的位置。

该位置支持两种格式:

  1. externalForm 形式的绝对 java.net.URL(例如:http://myhandlers.foo.com/handlerfile1.xml)。
  2. 相对于源文件或类文件的相对路径(例如:bar/handlerfile1.xml)。
英文文档:

file

public abstract String file
Location of the handler chain file.

The location supports 2 formats:

  1. An absolute java.net.URL in externalForm (ex: http://myhandlers.foo.com/handlerfile1.xml).
  2. A relative path from the source file or class file (ex: bar/handlerfile1.xml).

abstract public String
name()

配置文件中的处理程序链的名称。
deprecated 从 JSR-181 2.0 开始,无替代版本。
英文文档:

name

@Deprecated
public abstract String name
Deprecated. As of JSR-181 2.0 with no replacement.

Name of the handler chain in the configuration file

Default:
""


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!