Example usage for org.apache.http.nio NHttpServerEventHandler closed

List of usage examples for org.apache.http.nio NHttpServerEventHandler closed

Introduction

In this page you can find the example usage for org.apache.http.nio NHttpServerEventHandler closed.

Prototype

void closed(NHttpServerConnection conn);

Source Link

Document

Triggered when the connection is closed.

Usage

From source file:org.apache.synapse.transport.passthru.core.MultiListenerServerIODispatch.java

@Override
protected void onClosed(final DefaultNHttpServerConnection defaultNHttpServerConnection) {
    int localPort = defaultNHttpServerConnection.getLocalPort();
    NHttpServerEventHandler handler = handlers.get(localPort);
    try {//from w ww.j  a v a  2s.  c  o m
        handler.closed(defaultNHttpServerConnection);
    } catch (final Exception ex) {
        handler.exception(defaultNHttpServerConnection, ex);
    }
}