Package org.dspace.submit.lookup
Class ArXivService
- java.lang.Object
-
- org.dspace.submit.lookup.ArXivService
-
public class ArXivService extends Object
- Author:
- Andrea Bollini, Kostas Stamatis, Luigi Andrea Pascarelli, Panagiotis Koutsourakis
-
-
Constructor Summary
Constructors Constructor Description ArXivService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description gr.ekt.bte.core.RecordgetByArXivIDs(String raw)List<gr.ekt.bte.core.Record>getByDOIs(Set<String> dois)protected List<gr.ekt.bte.core.Record>search(String query, String arxivid, int max_result)List<gr.ekt.bte.core.Record>searchByTerm(String title, String author, int year)voidsetTimeout(int timeout)How long to wait for a connection to be established.
-
-
-
Method Detail
-
setTimeout
public void setTimeout(int timeout)
How long to wait for a connection to be established.- Parameters:
timeout- milliseconds
-
getByDOIs
public List<gr.ekt.bte.core.Record> getByDOIs(Set<String> dois) throws org.apache.http.HttpException, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
searchByTerm
public List<gr.ekt.bte.core.Record> searchByTerm(String title, String author, int year) throws org.apache.http.HttpException, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
search
protected List<gr.ekt.bte.core.Record> search(String query, String arxivid, int max_result) throws IOException, org.apache.http.HttpException
- Throws:
IOExceptionorg.apache.http.HttpException
-
getByArXivIDs
public gr.ekt.bte.core.Record getByArXivIDs(String raw) throws org.apache.http.HttpException, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
-