All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.pathways.PathwaysConfig Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
package org.molgenis.pathways;

import org.apache.http.client.HttpClient;
import org.molgenis.data.config.HttpClientConfig;
import org.molgenis.wikipathways.client.WikiPathwaysPortType;
import org.molgenis.wikipathways.client.WikiPathwaysRESTBindingStub;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.net.MalformedURLException;

@Configuration
@Import(HttpClientConfig.class)
public class PathwaysConfig
{
	@Autowired
	private HttpClient httpClient;

	@Bean
	public WikiPathwaysPortType service() throws MalformedURLException
	{
		return new WikiPathwaysRESTBindingStub(httpClient, "http://webservice.wikipathways.org");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy