HandlerResolver (Java EE 5)

Java EE API


javax.xml.ws.handler Interface HandlerResolver


public interface HandlerResolver


HandlerResolver 是由应用程序实现的接口,用于控制创建 proxy/dispatch 对象时设置在这些对象上的处理程序链。

可以使用 setHandlerResolver 方法在 Service 上设置 HandlerResolver

当运行时调用 HandlerResolver 时,将向它传递一个 PortInfo 对象,该对象中包含 proxy/dispatch 对象将访问的端口的信息。

英文文档:

HandlerResolver is an interface implemented by an application to get control over the handler chain set on proxy/dispatch objects at the time of their creation.

A HandlerResolver may be set on a Service using the setHandlerResolver method.

When the runtime invokes a HandlerResolver, it will pass it a PortInfo object containing information about the port that the proxy/dispatch object will be accessing.

Since:
JAX-WS 2.0
See Also:
Service.setHandlerResolver(javax.xml.ws.handler.HandlerResolver)

Method Summary
 List<Handler>
 

Method Detail

public java.util.List<E> getHandlerChain(PortInfo portInfo)
获取指定端口的处理程序链。
portInfo 包含正被访问的端口的信息。
return java.util.List 处理程序链
英文文档:

getHandlerChain

List<Handler> getHandlerChain(PortInfo portInfo)
Gets the handler chain for the specified port.

Parameters:
portInfo - Contains information about the port being accessed.
Returns:
java.util.List Handler chain


Submit a bug or feature

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

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

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