@Test public void testConfigurePartnerBindingSetsEndpoint() { final Soap binding = this.partnerBindingCache.getBinding(); assertEquals("https: getEndpoint(binding)); final String partnerServerUrl = "http: this.configurer.configurePartnerBinding(binding, new BindingConfig(new Id("012345678901234"), "session", partnerServerUrl, "http: assertEquals(partnerServerUrl, getEndpoint(binding)); }
void configurePartnerBinding(Soap binding, BindingConfig bindingConfig) { WSBindingProvider wsBindingProvider = (WSBindingProvider) binding; this.configureRequestContextConnectionParams(wsBindingProvider); wsBindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, bindingConfig.getPartnerServerUrl()); SessionHeader sessionHeader = new SessionHeader(); sessionHeader.setSessionId(bindingConfig.getSessionId()); List<Header> headers = new ArrayList<Header>(); final CallOptions callOptions = new CallOptions(); callOptions.setClient(this.partnerKey); headers.add(Headers.create(this.partnerJaxbContext, sessionHeader)); headers.add(Headers.create(this.partnerJaxbContext, callOptions)); wsBindingProvider.setOutboundHeaders(headers); }
BindingConfigurer { void configurePartnerBinding(Soap binding, BindingConfig bindingConfig) { WSBindingProvider wsBindingProvider = (WSBindingProvider) binding; this.configureRequestContextConnectionParams(wsBindingProvider); wsBindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, bindingConfig.getPartnerServerUrl()); SessionHeader sessionHeader = new SessionHeader(); sessionHeader.setSessionId(bindingConfig.getSessionId()); List<Header> headers = new ArrayList<Header>(); final CallOptions callOptions = new CallOptions(); callOptions.setClient(this.partnerKey); headers.add(Headers.create(this.partnerJaxbContext, sessionHeader)); headers.add(Headers.create(this.partnerJaxbContext, callOptions)); wsBindingProvider.setOutboundHeaders(headers); } }
BindingConfigurer { void configurePartnerBinding(Soap binding, BindingConfig bindingConfig) { WSBindingProvider wsBindingProvider = (WSBindingProvider) binding; this.configureRequestContextConnectionParams(wsBindingProvider); wsBindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, bindingConfig.getPartnerServerUrl()); SessionHeader sessionHeader = new SessionHeader(); sessionHeader.setSessionId(bindingConfig.getSessionId()); List<Header> headers = new ArrayList<Header>(); final CallOptions callOptions = new CallOptions(); callOptions.setClient(this.partnerKey); headers.add(Headers.create(this.partnerJaxbContext, sessionHeader)); headers.add(Headers.create(this.partnerJaxbContext, callOptions)); wsBindingProvider.setOutboundHeaders(headers); } BindingConfigurer(@Nonnull String partnerKey, MetricRegistry metricRegistry); }
BindingConfigurer { void configurePartnerBinding(Soap binding, BindingConfig bindingConfig) { WSBindingProvider wsBindingProvider = (WSBindingProvider) binding; this.configureRequestContextConnectionParams(wsBindingProvider); wsBindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, bindingConfig.getPartnerServerUrl()); SessionHeader sessionHeader = new SessionHeader(); sessionHeader.setSessionId(bindingConfig.getSessionId()); List<Header> headers = new ArrayList<Header>(); final CallOptions callOptions = new CallOptions(); callOptions.setClient(this.partnerKey); headers.add(Headers.create(this.partnerJaxbContext, sessionHeader)); headers.add(Headers.create(this.partnerJaxbContext, callOptions)); wsBindingProvider.setOutboundHeaders(headers); } BindingConfigurer(@Nonnull String partnerKey, MetricRegistry metricRegistry);  }
BindingConfigurer { void configurePartnerBinding(Soap binding, BindingConfig bindingConfig) { WSBindingProvider wsBindingProvider = (WSBindingProvider) binding; this.configureRequestContextConnectionParams(wsBindingProvider); wsBindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, bindingConfig.getPartnerServerUrl()); SessionHeader sessionHeader = new SessionHeader(); sessionHeader.setSessionId(bindingConfig.getSessionId()); List<Header> headers = new ArrayList<Header>(); final CallOptions callOptions = new CallOptions(); callOptions.setClient(this.partnerKey); headers.add(Headers.create(this.partnerJaxbContext, sessionHeader)); headers.add(Headers.create(this.partnerJaxbContext, callOptions)); wsBindingProvider.setOutboundHeaders(headers); } BindingConfigurer(@Nonnull String partnerKey, MetricRegistry metricRegistry);   }