public AbstractBridgeSession(IoServiceEx service, IoProcessorEx<S> processor, ResourceAddress localAddress, ResourceAddress remoteAddress, IoSessionEx parent, IoBufferAllocatorEx<? extends B> allocator, Direction direction) { this(service, processor, localAddress, remoteAddress, parent, allocator, direction, new DefaultIoSessionConfigEx()); }
public WsnAcceptor() { super(new DefaultIoSessionConfigEx()); }
public WsebAcceptor() { super(new DefaultIoSessionConfigEx()); }
public SslAcceptor() { super(new DefaultIoSessionConfigEx()); }
public WsebConnector() { super(new DefaultIoSessionConfigEx()); }
public SslConnector() { super(new DefaultIoSessionConfigEx()); }
public WsrAcceptor() { super(new DefaultIoSessionConfigEx()); sessionMap = new ConcurrentHashMap<>(); codec = new RtmpChunkCodecFilter(); }
public WsrConnector() { super(new DefaultIoSessionConfigEx()); codec = new RtmpChunkCodecFilter(); }
public HttpConnector() { super(new DefaultIoSessionConfigEx()); // note: content length adjustment filter is added dynamically for httpxe/1.1, and not needed by http/1.1 Map<String, Set<HttpConnectFilter>> connectFiltersByProtocol = new HashMap<>(); connectFiltersByProtocol.put(PROTOCOL_HTTP_1_1, complementOf(of(CONTENT_LENGTH_ADJUSTMENT, PROTOCOL_HTTPXE))); connectFiltersByProtocol.put(PROTOCOL_HTTPXE_1_1, complementOf(of(CONTENT_LENGTH_ADJUSTMENT))); this.connectFiltersByProtocol = unmodifiableMap(connectFiltersByProtocol); this.allConnectFilters = allOf(HttpConnectFilter.class); this.persistentConnectionsStore = new PersistentConnectionPool(logger); }
IoBufferAllocatorEx<? extends B> allocator, Direction direction) { this(parentIoLayer, parentIoThread, parentIoExecutor, service, sIoProcessor, localAddress, remoteAddress, null, allocator, direction, new DefaultIoSessionConfigEx());
public HttpAcceptor() { super(new DefaultIoSessionConfigEx()); // note: content length adjustment filter is added dynamically for httpxe/1.1, and not needed by http/1.1 // note: empty packet filter is added dynamically for httpx/1.1, and not needed by httpxe/1.1 nor http/1.1 // note: serialize request filter only needed for http , not httpxe nor httpx Map<String, Set<HttpAcceptFilter>> acceptFiltersByProtocol = new HashMap<>(); acceptFiltersByProtocol.put(PROTOCOL_HTTP_1_1, complementOf(of(CONTENT_LENGTH_ADJUSTMENT, PROTOCOL_HTTPXE, ELEVATE_EMULATED_REQUEST, CONDITIONAL_WRAPPED_RESPONSE))); acceptFiltersByProtocol.put(PROTOCOL_HTTPXE_1_1, complementOf(of(CONTENT_LENGTH_ADJUSTMENT, // wsx-filter-only MERGE_REQUEST, // do not serialize again HTTP_SERIALIZE_REQUEST_FILTER, PROTOCOL_HTTP, HOST_HEADER, ELEVATE_EMULATED_REQUEST, CONDITIONAL_WRAPPED_RESPONSE))); acceptFiltersByProtocol.put("x-kaazing-handshake", complementOf(of(CONTENT_LENGTH_ADJUSTMENT, PROTOCOL_HTTPXE, HOST_HEADER, ELEVATE_EMULATED_REQUEST, CONDITIONAL_WRAPPED_RESPONSE))); this.acceptFiltersByProtocol = unmodifiableMap(acceptFiltersByProtocol); this.allAcceptFilters = allOf(HttpAcceptFilter.class); }
public WsnConnector() { super(new DefaultIoSessionConfigEx()); postUpgrade = new HttpPostUpgradeFilter(); codec = new WsCodecFilter(0, true); base64 = new WsFrameBase64Filter(); text = new WsFrameTextFilter(); }