Deallocate NIO memory pools, and close server socket.
()
| 434 | * Deallocate NIO memory pools, and close server socket. |
| 435 | */ |
| 436 | @Override |
| 437 | public void unbind() throws Exception { |
| 438 | if (log.isTraceEnabled()) { |
| 439 | log.trace("Destroy initiated for " + new InetSocketAddress(getAddress(), getPortWithOffset())); |
| 440 | } |
| 441 | if (running) { |
| 442 | stop(); |
| 443 | } |
| 444 | try { |
| 445 | doCloseServerSocket(); |
| 446 | } catch (IOException ioe) { |
| 447 | getLog().warn(sm.getString("endpoint.serverSocket.closeFailed", getName()), ioe); |
| 448 | } |
| 449 | destroySsl(); |
| 450 | super.unbind(); |
| 451 | if (getHandler() != null) { |
| 452 | getHandler().recycle(); |
| 453 | } |
| 454 | if (log.isTraceEnabled()) { |
| 455 | log.trace("Destroy completed for " + new InetSocketAddress(getAddress(), getPortWithOffset())); |
| 456 | } |
| 457 | } |
| 458 | |
| 459 | |
| 460 | @Override |
nothing calls this directly
no test coverage detected