public void close() throws Exception {
if ((request != null) && (request.isUpgrade())) {
HttpUpgradeHandler httpUpgradeHandler =
request.getHttpUpgradeHandler();
try {
httpUpgradeHandler.destroy();
} finally {
((StandardContext)request.getContext()).fireContainerEvent(
ContainerEvent.PRE_DESTROY, httpUpgradeHandler);
}
request.getCoyoteRequest().getResponse().resume();