javax.xml.ws.handler.Handler.close()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(162)

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

Handler.close介绍

[英]Called at the conclusion of a message exchange pattern just prior to the JAX-WS runtime dispatching a message, fault or exception. Refer to the description of the handler framework in the JAX-WS specification for full details.
[中]在JAX-WS运行时调度消息、故障或异常之前的消息交换模式结束时调用。请参阅JAX-WS规范中对处理程序框架的描述,以了解完整的详细信息。

代码示例

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

private void invokeReversedClose() {
  int index = invokedHandlers.size() - 1;
  while (index >= 0) {
    Handler<?> handler = invokedHandlers.get(index);
    if (handler instanceof LogicalHandler) {
      handler.close(logicalMessageContext);
    } else {
      handler.close(protocolMessageContext);
    }
    invokedHandlers.remove(index);
    index--;
  }
  closed = true;
}

代码示例来源:origin: org.jboss.ws/jbossws-common

@Override
public void close(MessageContext context)
{
 delegate.close(context);
}

代码示例来源:origin: apache/cxf

private void invokeReversedClose() {
  int index = invokedHandlers.size() - 1;
  while (index >= 0) {
    Handler<?> handler = invokedHandlers.get(index);
    if (handler instanceof LogicalHandler) {
      handler.close(logicalMessageContext);
    } else {
      handler.close(protocolMessageContext);
    }
    invokedHandlers.remove(index);
    index--;
  }
  closed = true;
}

代码示例来源:origin: org.objectweb.celtix/celtix-rt

private <T extends Handler> void invokeClose(List<T> handlers, MessageContext context) {
  handlers = reverseHandlerChain(handlers); 
  for (Handler h : handlers) {
    if (closeHandlers.contains(h)) {
      h.close(context);
    }
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

for (int i = start; i >= end; i--) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,
for (int i = start; i <= end; i++) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,

代码示例来源:origin: com.sun.xml.ws/rt

for (int i = start; i >= end; i--) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,
for (int i = start; i <= end; i++) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,

代码示例来源:origin: javaee/metro-jax-ws

for (int i = start; i >= end; i--) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,
for (int i = start; i <= end; i++) {
  try {
    handlers.get(i).close(context);
  } catch (RuntimeException re) {
    logger.log(Level.INFO,

代码示例来源:origin: org.codehaus.xfire/xfire-jaxws

protected void invokeHandler(SOAPMessageContext soapContext, Handler handler)
  {
    if (handler instanceof LogicalHandler)
    {
      LogicalHandler lh = (LogicalHandler) handler;
      
    }
    else if (handler instanceof SOAPHandler)
    {
      SOAPHandler sh = (SOAPHandler) handler;

      sh.close(soapContext);
    }
    else
    {
      handler.close(soapContext);
    }
  }
}

相关文章