|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eaglei.search.provider.nif.NIFQueryUtil
public final class NIFQueryUtil
Contains logic for using NIF ESearch.
| Nested Class Summary | |
|---|---|
static class |
NIFQueryUtil.ESearchResult
Simple representation of an eSearch result and, optionally, the results of a subsequent set of sSummary or eFetch calls. |
| Field Summary | |
|---|---|
static java.lang.String |
DB
|
static java.lang.String |
EUTILS_URL
|
static java.lang.String |
ID
|
static java.lang.String |
ID_PARAM
|
static java.lang.String |
IDLIST
|
static java.lang.String |
RETMAX
|
static java.lang.String |
RETMODE
|
static java.lang.String |
RETSTART
|
static java.lang.String |
TERM
|
static java.lang.String |
TOOL
|
| Constructor Summary | |
|---|---|
NIFQueryUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
buildSearchURL(java.lang.String query,
java.lang.String db,
java.lang.String tool,
int start,
int max)
|
static java.lang.String |
buildServiceURL(java.lang.String serviceURL,
java.util.List<java.lang.String> ids,
java.lang.String db,
int max,
java.lang.String tool)
Builds a query URL for executing an eUtils service that retrieves information for a set of IDs. |
static org.w3c.dom.Document |
executeNIFRequest(java.lang.String url)
Executes an NCBI request at the specified eUtils URL and returns the XML response as a DOM Document |
static org.w3c.dom.Document |
search(java.lang.String query,
java.lang.String db,
java.lang.String tool,
int startIndex,
int maxResults)
Executes an NCBI search. |
static java.lang.String |
serializeDocument(org.w3c.dom.Document doc)
Utility method to serialize an XML document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EUTILS_URL
public static final java.lang.String DB
public static final java.lang.String TERM
public static final java.lang.String RETMAX
public static final java.lang.String RETSTART
public static final java.lang.String TOOL
public static final java.lang.String ID_PARAM
public static final java.lang.String RETMODE
public static final java.lang.String IDLIST
public static final java.lang.String ID
| Constructor Detail |
|---|
public NIFQueryUtil()
| Method Detail |
|---|
public static org.w3c.dom.Document search(java.lang.String query,
java.lang.String db,
java.lang.String tool,
int startIndex,
int maxResults)
throws java.io.IOException
java.io.IOException
public static java.lang.String buildSearchURL(java.lang.String query,
java.lang.String db,
java.lang.String tool,
int start,
int max)
public static org.w3c.dom.Document executeNIFRequest(java.lang.String url)
throws java.io.IOException
url - eUtils URL with all params.
java.io.IOException - Thrown if there is an error.
public static java.lang.String buildServiceURL(java.lang.String serviceURL,
java.util.List<java.lang.String> ids,
java.lang.String db,
int max,
java.lang.String tool)
serviceURL - Base URL for the serviceids - IDs of artifacts whose information is being retrieveddb - The target dbmax - Max number of resultstool - The source tool
public static java.lang.String serializeDocument(org.w3c.dom.Document doc)
doc - The DOM document.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||