public interface Provider<T>
服务终端可以实现Provider接口作为一个动态的替代一个SEI。
实现都必须支持Provider<Source>,Provider<SOAPMessage>和Provider<DataSource>,具体取决于所使用的绑定和服务模式。
的ServiceMode注释可以用来控制是否Provider实例将获得整个协议的消息或消息有效载荷。
Source,
SOAPMessage,
ServiceMode
T invoke(T request)
request -请求消息或消息有效载荷。
null如果没有响应。
WebServiceException -如果有处理请求的错误。该
WebServiceException原因可能被设置为一个类
ProtocolException控制异常的协议级的表现。
MessageContext,
ProtocolException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.