Example usage for javax.xml.ws.handler Handler close

List of usage examples for javax.xml.ws.handler Handler close

Introduction

In this page you can find the example usage for javax.xml.ws.handler Handler close.

Prototype

public void close(MessageContext context);

Source Link

Document

Called at the conclusion of a message exchange pattern just prior to the JAX-WS runtime dispatching a message, fault or exception.

Usage

From source file:org.apache.axis2.jaxws.handler.HandlerChainProcessor.java

private void callCloseWithTracker(Handler handler) {
    currentHandler = handler;/*from w w w  .  j a  va  2 s . c  o m*/
    currentMethod = "close";
    // turn on the tracker property
    currentMC.put(org.apache.axis2.jaxws.handler.Constants.JAXWS_HANDLER_TRACKER, true);
    RuntimeException savedEx = null;
    try {
        handler.close(currentMC);
    } catch (RuntimeException t) {
        savedEx = t;
    }
    // turn off the tracker property and reset the static tracker booleans
    currentMC.put(org.apache.axis2.jaxws.handler.Constants.JAXWS_HANDLER_TRACKER, false);
    saaj_called = false;
    soap_headers_adapter_called = false;
    if (savedEx != null) {
        throw savedEx;
    }
}