Package org.bridgedb.ws
Class WSCoreClient
- java.lang.Object
-
- org.bridgedb.ws.WSCoreClient
-
- All Implemented Interfaces:
WSCoreInterface
public class WSCoreClient extends Object implements WSCoreInterface
- Author:
- Christian
-
-
Field Summary
Fields Modifier and Type Field Description protected StringserviceAddressprotected com.sun.jersey.api.client.WebResourcewebResource
-
Constructor Summary
Constructors Constructor Description WSCoreClient(String serviceAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsefreeSearch(String text, String limit)javax.ws.rs.core.ResponsegetCapabilities()javax.ws.rs.core.ResponsegetKeys()javax.ws.rs.core.ResponsegetProperty(String key)javax.ws.rs.core.ResponsegetSupportedSrcDataSources()javax.ws.rs.core.ResponsegetSupportedTgtDataSources()javax.ws.rs.core.ResponseisFreeSearchSupported()javax.ws.rs.core.ResponseisMappingSupported(String sourceCode, String targetCode)javax.ws.rs.core.ResponsemapID(List<String> id, List<String> scrCode, List<String> targetCodes)javax.ws.rs.core.ResponsexrefExists(String id, String scrCode)
-
-
-
Field Detail
-
serviceAddress
protected final String serviceAddress
-
webResource
protected final com.sun.jersey.api.client.WebResource webResource
-
-
Constructor Detail
-
WSCoreClient
public WSCoreClient(String serviceAddress)
-
-
Method Detail
-
mapID
public javax.ws.rs.core.Response mapID(List<String> id, List<String> scrCode, List<String> targetCodes) throws org.bridgedb.utils.BridgeDBException
- Specified by:
mapIDin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
freeSearch
public javax.ws.rs.core.Response freeSearch(String text, String limit) throws org.bridgedb.utils.BridgeDBException
- Specified by:
freeSearchin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
getKeys
public javax.ws.rs.core.Response getKeys()
- Specified by:
getKeysin interfaceWSCoreInterface
-
getProperty
public javax.ws.rs.core.Response getProperty(String key)
- Specified by:
getPropertyin interfaceWSCoreInterface
-
getSupportedSrcDataSources
public javax.ws.rs.core.Response getSupportedSrcDataSources() throws org.bridgedb.utils.BridgeDBException- Specified by:
getSupportedSrcDataSourcesin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
getSupportedTgtDataSources
public javax.ws.rs.core.Response getSupportedTgtDataSources() throws org.bridgedb.utils.BridgeDBException- Specified by:
getSupportedTgtDataSourcesin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
isFreeSearchSupported
public javax.ws.rs.core.Response isFreeSearchSupported()
- Specified by:
isFreeSearchSupportedin interfaceWSCoreInterface
-
isMappingSupported
public javax.ws.rs.core.Response isMappingSupported(String sourceCode, String targetCode) throws org.bridgedb.utils.BridgeDBException
- Specified by:
isMappingSupportedin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
xrefExists
public javax.ws.rs.core.Response xrefExists(String id, String scrCode) throws org.bridgedb.utils.BridgeDBException
- Specified by:
xrefExistsin interfaceWSCoreInterface- Throws:
org.bridgedb.utils.BridgeDBException
-
getCapabilities
public javax.ws.rs.core.Response getCapabilities()
- Specified by:
getCapabilitiesin interfaceWSCoreInterface
-
-