@Override
public void onRequestTargetSet(IRequestTarget target) {
// we can have many of these calls per http call, avoid locking multiple times,
// onEndRequest will be called just once
LockType type = THREAD_LOCK.get();
if (type != null) {
return;
}
// setup a write lock for secured pages, a read one for the others