@Override
public void onSessionTerminated(HttpRecorderSession contentSession,
int code, String reason) throws Exception {
RecorderEndpoint recorderEndPoint = (RecorderEndpoint) contentSession
.getAttribute("recorder");
recorderEndPoint.stop();
super.onSessionTerminated(contentSession, code, reason);
}
protected abstract String getUri();
}