|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.emir.client.EMIRClient
public class EMIRClient
Helper class to create the client resource instance
| Constructor Summary | |
|---|---|
EMIRClient(String url)
Single argument constructor to access emir on HTTP mode |
|
EMIRClient(String url,
eu.unicore.util.httpclient.IClientConfiguration clientConfig)
Creates EMIRClient object with ssl/tls |
|
| Method Summary | |
|---|---|
com.sun.jersey.api.client.ClientResponse |
deleteByID(String endpointId)
Delete a service endpoint record by its ID |
org.codehaus.jettison.json.JSONArray |
facetSearch(Map<String,String> facetMap)
|
com.sun.jersey.api.client.Client |
getClient()
|
com.sun.jersey.api.client.WebResource |
getClientResource()
Returns remote raw resource object |
String |
getEmirUrl()
|
Boolean |
isReachable()
|
org.codehaus.jettison.json.JSONArray |
queryByQueryParams(javax.ws.rs.core.MultivaluedMap<String,String> attrMap)
Querying the EMIR server for Service Endpoint Records using http query parameters |
org.codehaus.jettison.json.JSONArray |
queryByQueryParams(URIQuery query)
Querying the EMIR server for Service Endpoint Records using http query parameters |
QueryResult |
queryXML(javax.ws.rs.core.MultivaluedMap<String,String> attrMap,
Integer skip,
Integer limit)
|
org.codehaus.jettison.json.JSONArray |
register(org.codehaus.jettison.json.JSONArray ja)
Registers an array of Service Endpoint Records, defined as JSONArray |
org.codehaus.jettison.json.JSONArray |
richQueryForJSON(org.codehaus.jettison.json.JSONObject queryDocument)
Querying the EMIR server for JSON records by JSON document containing the rich queries |
org.codehaus.jettison.json.JSONArray |
richQueryForJSON(org.codehaus.jettison.json.JSONObject queryDocument,
Integer pageSize)
An overloaded method |
QueryResult |
richQueryForXML(org.codehaus.jettison.json.JSONObject queryDocument)
Querying the EMIR server for JSON records by JSON document containing the rich queries |
QueryResult |
richQueryForXML(org.codehaus.jettison.json.JSONObject queryDocument,
Integer pageSize)
An overloaded method |
org.codehaus.jettison.json.JSONArray |
update(org.codehaus.jettison.json.JSONArray ja)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EMIRClient(String url,
eu.unicore.util.httpclient.IClientConfiguration clientConfig)
EMIRClient object with ssl/tls
url - Remote EMIR url{@link - IClientConfiguration}public EMIRClient(String url)
url - Remote EMIR url| Method Detail |
|---|
public com.sun.jersey.api.client.WebResource getClientResource()
WebResourcepublic com.sun.jersey.api.client.Client getClient()
public org.codehaus.jettison.json.JSONArray register(org.codehaus.jettison.json.JSONArray ja)
JSONArray
ja - An array of JSON documents containing the Service Endpoint Records
JSONArraypublic org.codehaus.jettison.json.JSONArray update(org.codehaus.jettison.json.JSONArray ja)
public com.sun.jersey.api.client.ClientResponse deleteByID(String endpointId)
endpointId - public org.codehaus.jettison.json.JSONArray queryByQueryParams(javax.ws.rs.core.MultivaluedMap<String,String> attrMap)
attrMap - A map containing name value pairs
JSONArray containing matching recordspublic org.codehaus.jettison.json.JSONArray queryByQueryParams(URIQuery query)
query -
JSONArray containing matching recordspublic org.codehaus.jettison.json.JSONArray richQueryForJSON(org.codehaus.jettison.json.JSONObject queryDocument)
queryDocument - A json document defining rich query, according to MongoDB query specification, @see http://www.mongodb.org/display/DOCS/Advanced+Queries
JSONArray containing matching records
public org.codehaus.jettison.json.JSONArray richQueryForJSON(org.codehaus.jettison.json.JSONObject queryDocument,
Integer pageSize)
queryDocument - pageSize - is a number of SE records included in the result
public QueryResult richQueryForXML(org.codehaus.jettison.json.JSONObject queryDocument)
queryDocument - A json document defining rich query, according to MongoDB query specification, @see http://www.mongodb.org/display/DOCS/Advanced+Queries
JSONArray containing matching records
public QueryResult richQueryForXML(org.codehaus.jettison.json.JSONObject queryDocument,
Integer pageSize)
queryDocument - pageSize - is a number of SE records included in the result
public QueryResult queryXML(javax.ws.rs.core.MultivaluedMap<String,String> attrMap,
Integer skip,
Integer limit)
public org.codehaus.jettison.json.JSONArray facetSearch(Map<String,String> facetMap)
facetNames - public Boolean isReachable()
public String getEmirUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||