/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
/** * Creates {@link Http2Session} with pre-configured initial-windows-size and * max-concurrent-streams * @param connection the TCP {@link Connection} * @param isServer flag indicating whether this connection is server side or not. * @return {@link Http2Session} */ protected Http2Session createHttp2Session(final Connection connection, final boolean isServer) { final Http2Session http2Session = new Http2Session(connection, isServer, this); final int initialWindowSize = configuration.getInitialWindowSize(); if (initialWindowSize != -1) { http2Session.setLocalStreamWindowSize(initialWindowSize); } final int maxConcurrentStreams = configuration.getMaxConcurrentStreams(); if (maxConcurrentStreams != -1) { http2Session.setLocalMaxConcurrentStreams(maxConcurrentStreams); } Http2Session.bind(connection, http2Session); return http2Session; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }
protected SettingsFrame.SettingsFrameBuilder prepareSettings( final Http2Session http2Session) { SettingsFrame.SettingsFrameBuilder builder = SettingsFrame.builder(); final int maxConcStreams = getConfiguration().getMaxConcurrentStreams(); if (maxConcStreams != -1 && maxConcStreams != http2Session.getDefaultMaxConcurrentStreams()) { builder.setting(SETTINGS_MAX_CONCURRENT_STREAMS, maxConcStreams); } final int initWindSize = getConfiguration().getInitialWindowSize(); if (initWindSize != -1 && http2Session != null && initWindSize != http2Session.getDefaultStreamWindowSize()) { builder.setting(SETTINGS_INITIAL_WINDOW_SIZE, initWindSize); } builder.setting(SETTINGS_ENABLE_PUSH, ((getConfiguration().isPushEnabled()) ? 1 : 0)); return builder; }