public class CiNiiService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
timeout |
| Constructor and Description |
|---|
CiNiiService() |
| Modifier and Type | Method and Description |
|---|---|
gr.ekt.bte.core.Record |
getByCiNiiID(String id,
String appId) |
protected List<String> |
getCiNiiIDs(String title,
String author,
int year,
int maxResults,
String appId)
Get CiNii NAIDs by searching CiNii OpenURL API with title, author and year
|
protected gr.ekt.bte.core.Record |
search(String id,
String appId)
Get metadata by searching CiNii RDF API with CiNii NAID
|
List<gr.ekt.bte.core.Record> |
searchByTerm(String title,
String author,
int year,
int maxResults,
String appId) |
void |
setTimeout(int timeout) |
public void setTimeout(int timeout)
public gr.ekt.bte.core.Record getByCiNiiID(String id, String appId) throws org.apache.http.HttpException, IOException
org.apache.http.HttpExceptionIOExceptionpublic List<gr.ekt.bte.core.Record> searchByTerm(String title, String author, int year, int maxResults, String appId) throws org.apache.http.HttpException, IOException
org.apache.http.HttpExceptionIOExceptionprotected gr.ekt.bte.core.Record search(String id, String appId) throws IOException, org.apache.http.HttpException
IOExceptionorg.apache.http.HttpExceptionprotected List<String> getCiNiiIDs(String title, String author, int year, int maxResults, String appId) throws IOException, org.apache.http.HttpException
IOExceptionorg.apache.http.HttpExceptionCopyright © 2016 DuraSpace. All Rights Reserved.