this.messageFactory = messageFactory;
this.servletHost = servletHost;
// retrieve operation selector and wire format service providers
ProviderFactoryExtensionPoint providerFactories =
extensionPoints.getExtensionPoint(ProviderFactoryExtensionPoint.class);
if (binding.getOperationSelector() != null) {
// Configure the interceptors for operation selection
OperationSelectorProviderFactory osProviderFactory =
(OperationSelectorProviderFactory)providerFactories.getProviderFactory(binding.getOperationSelector()
.getClass());
if (osProviderFactory != null) {
this.osProvider = osProviderFactory.createServiceOperationSelectorProvider(endpoint);
}
}
if (binding.getRequestWireFormat() != null) {
// Configure the interceptors for wire format
WireFormatProviderFactory wfProviderFactory =
(WireFormatProviderFactory)providerFactories.getProviderFactory(binding.getRequestWireFormat()
.getClass());
if (wfProviderFactory != null) {
this.wfProvider = wfProviderFactory.createServiceWireFormatProvider(endpoint);
}
}
if (binding.getResponseWireFormat() != null) {
// Configure the interceptors for wire format
WireFormatProviderFactory wfProviderFactory =
(WireFormatProviderFactory)providerFactories.getProviderFactory(binding.getResponseWireFormat()
.getClass());
if (wfProviderFactory != null) {
this.wfResponseProvider = wfProviderFactory.createServiceWireFormatProvider(endpoint);
}
}