|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.epnet.eit2.rest.client.AbstractEIT2Client
This class includes the definitions for the REST service. Defines the service paths and implements the methods by accepting querystrings.
Field Summary | |
protected java.net.URI |
baseURI
The base URI for all the methods |
protected static java.lang.String |
browseServicePath
The browse method path |
protected static java.lang.String |
infoServicePath
The info method path |
protected static java.lang.String |
searchServicePath
The search method path |
Constructor Summary | |
protected |
AbstractEIT2Client(java.lang.String host)
Creates a new EIT2 REST client by defining the host. |
Method Summary | |
protected java.io.InputStream |
browse(java.lang.String querystring)
EIT2 REST browse method. |
protected java.io.InputStream |
info(java.lang.String querystring)
EIT2 REST info method. |
protected java.io.InputStream |
search(java.lang.String querystring)
EIT2 REST search method. |
protected java.io.InputStream |
service(java.lang.String servicePath,
java.lang.String querystring)
Generic method execution |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String infoServicePath
protected static final java.lang.String browseServicePath
protected static final java.lang.String searchServicePath
protected java.net.URI baseURI
Constructor Detail |
protected AbstractEIT2Client(java.lang.String host) throws EITClientException
host
- The EIT2 Rest host, eit.ebscohost.com
EITClientException
- If URI contructed using the provided host is
an improper URI. Make sure the host passed is only the host nameMethod Detail |
protected java.io.InputStream info(java.lang.String querystring) throws EITClientException
querystring
- The querystring prof=XXX&pwd=XXX
EITClientException
- If any network errors occur with the requestprotected java.io.InputStream browse(java.lang.String querystring) throws EITClientException
querystring
- prof=XXX&pwd=XXX&term=XXX&numrec=XXX&db=XXX&index=XXX.
All but numrec are required fields.
EITClientException
- If any network errors occur with the requestprotected java.io.InputStream search(java.lang.String querystring) throws EITClientException
querystring
- prof=X&pwd=X&query=X&startrec=X&numrec=X&sort=X&db=X&format=X&subset=X.
Only prof, pws, query and db are required.
EITClientException
- If any network errors occur with the requestprotected java.io.InputStream service(java.lang.String servicePath, java.lang.String querystring) throws EITClientException
servicePath
- The specific method service pathquerystring
- The specific method querystring
EITClientException
- If any network errors occur with the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |