@SuppressWarnings("deprecation")
private DefaultHttpSession(IoServiceEx service,
IoProcessorEx<DefaultHttpSession> processor,
ResourceAddress address,
ResourceAddress remoteAddress,
IoSessionEx parent,
IoBufferAllocatorEx<HttpBuffer> allocator,
Direction direction,
Properties configuration) {
super(service, processor, address, remoteAddress, parent, allocator, direction);
writeHeaders = new LinkedHashMap<>();
writeCookies = new HashSet<>();
status = direction == Direction.READ ? HttpStatus.SUCCESS_OK : null;
reason = null;
secure = SslUtils.isSecure(parent);
committing = new AtomicBoolean(false);
connectionClose = new AtomicBoolean(false);
shutdownWrite = new AtomicBoolean(false);
upgradeFuture = new DefaultUpgradeFuture(parent);
commitFuture = new DefaultCommitFuture(this);
responseFuture = direction == Direction.READ ? null : new DefaultResponseFuture(this);
httpxeSpecCompliant = configuration == null ? false : HTTPXE_SPECIFICATION.getBooleanProperty(configuration);
redirectsAllowed = 0;
}