/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; this.executorService = original.executorService; this.scheduledExecutorService = original.scheduledExecutorService; }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; this.executorService = original.executorService; this.scheduledExecutorService = original.scheduledExecutorService; }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; this.executorService = original.executorService; this.scheduledExecutorService = original.scheduledExecutorService; }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; }
/** * Copy the original configuration state while using the default state change * strategy. * * @param client new Jersey client parent for the state. * @param original configuration strategy to be copied. */ private State(final JerseyClient client, final State original) { this.strategy = IDENTITY; this.client = client; this.commonConfig = new CommonConfig(original.commonConfig); this.connectorProvider = original.connectorProvider; this.executorService = original.executorService; this.scheduledExecutorService = original.scheduledExecutorService; }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }
/** * Default configuration state constructor with {@link StateChangeStrategy "identity"} * state change strategy. * * @param client bound parent Jersey client. */ State(final JerseyClient client) { this.strategy = IDENTITY; this.commonConfig = new CommonConfig(RuntimeType.CLIENT, ComponentBag.EXCLUDE_EMPTY); this.client = client; final Iterator<ConnectorProvider> iterator = ServiceFinder.find(ConnectorProvider.class).iterator(); if (iterator.hasNext()) { this.connectorProvider = iterator.next(); } else { this.connectorProvider = new HttpUrlConnectorProvider(); } }