com.sun.enterprise.deployment.WebServiceEndpoint.getHandlerChain()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中com.sun.enterprise.deployment.WebServiceEndpoint.getHandlerChain()方法的一些代码示例,展示了WebServiceEndpoint.getHandlerChain()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceEndpoint.getHandlerChain()方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebServiceEndpoint
类名称:WebServiceEndpoint
方法名:getHandlerChain

WebServiceEndpoint.getHandlerChain介绍

[英]Get ordered list of WebServiceHandler handler chains for this endpoint.
[中]获取此终结点的WebServiceHandler处理程序链的有序列表。

代码示例

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

return;
for(Iterator<WebServiceHandlerChain> hc = ep.getHandlerChain().iterator();
            hc.hasNext();) {
  WebServiceHandlerChain thisHc = hc.next();

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

public void configureJAXWSServiceHandlers(WebServiceEndpoint ep, 
    String bindingId, WSBinding bindingObj) {
  // No handler chains; do nothing
  if(!ep.hasHandlerChain()) {
    return;
  }
  LinkedList handlerChainList = ep.getHandlerChain();
  List<Handler> finalHandlerList = new ArrayList<Handler>();
  Set<String> roles = new HashSet();
  for(Iterator<WebServiceHandlerChain> i = handlerChainList.iterator(); i.hasNext();) {
    WebServiceHandlerChain hc = i.next();
    // Apply the serviceName / portName / bindings filter to ensure
    // that the handlers are for this endpoint
    if(!patternsMatch(hc, ep.getServiceName(), ep.getWsdlPort(), bindingId)) {
      continue;
    }
    // OK - this handler has to be configured for this endpoint
    // Iterate through all handlers that have been configured
    List<Handler> handlerInfo = processConfiguredHandlers(hc.getHandlers(), roles);
    finalHandlerList.addAll(handlerInfo);
  }
  // Processing of all handlers over; 
  // set final list of handler in RuntimeEndpointInfo
  bindingObj.setHandlerChain(finalHandlerList);
  // Set soap roles for soap bindings only
  if(bindingObj instanceof javax.xml.ws.soap.SOAPBinding) {
    ((javax.xml.ws.soap.SOAPBinding)bindingObj).setRoles(roles);
  }        
}

代码示例来源:origin: org.glassfish.deployment/dol

handlerChainNode.writeWebServiceHandlerChains(wseNode, descriptor.getHandlerChain());
return wseNode;

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

handlerChainNode.writeWebServiceHandlerChains(wseNode, descriptor.getHandlerChain());
return wseNode;

相关文章

WebServiceEndpoint类方法