|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.meta.rest.RESTClientImpl
public class RESTClientImpl
This class implements a client to be used by BEs (eduGAINBase) for the REST-based meta data operations at the MDS
| Field Summary | |
|---|---|
private MetaDataPublisher |
mdPublisher
|
private MetaDataRequester |
mdRequester
|
private java.net.URL |
mdsBaseUrl
The MDS base URL |
private java.net.URL |
mdsUrl
The full MDS URL used for the required operation |
private ComponentID |
valCompID
The valid component ID URI of the addressed MDS interface |
| Constructor Summary | |
|---|---|
RESTClientImpl()
Constructor |
|
RESTClientImpl(java.net.URL mdsBase)
Constructor |
|
| Method Summary | |
|---|---|
java.net.URL |
getMdsBaseUrl()
Gets the MDS base URL |
java.net.URL |
getMdsUrl()
Gets the MDS URL |
ComponentID |
getValCompID()
Gets the validated MDS component ID |
java.util.ArrayList<BEMetaData> |
lookupMetaData()
Performs a meta data lookup operation for the list of all bridging elements from all federations, by using only the MDS base URL. |
java.util.ArrayList<BEMetaData> |
lookupMetaData(java.lang.String federationID)
Performs a meta data lookup operation for the list of bridging elements belonging to a specific federation; the MDS URL will be composed of the base URL and the 'federationID'. |
BEMetaData |
lookupMetaData(java.lang.String federationID,
java.lang.String entityID)
Performs a meta data lookup operation for a specific BE interface; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the bridging element. |
java.util.ArrayList<BEMetaData> |
lookupMetaData(java.net.URL mdsBase)
Performs a meta data lookup operation for the list of all bridging elements from all federations, by using only the MDS base URL. |
java.util.ArrayList<BEMetaData> |
lookupMetaData(java.net.URL mdsBase,
java.lang.String federationID)
Performs a meta data lookup operation for the list of bridging elements belonging to a specific federation; the MDS URL will be composed of the base URL and the 'federationID'. |
BEMetaData |
lookupMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
Performs a meta data lookup operation for a specific BE interface; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the bridging element. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot()
Performs a meta data lookup operation for the list of all bridging elements from all federations, by using only the MDS base URL. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot(java.lang.String federationID)
Performs a meta data lookup operation for the list of bridging elements belonging to a specific federation; the MDS URL will be composed of the base URL and the 'federationID'. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot(java.lang.String federationID,
java.lang.String entityID)
Performs a meta data lookup operation for a specific BE interface; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the bridging element. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot(java.net.URL mdsBase)
Performs a meta data lookup operation for the list of all bridging elements from all federations, by using only the MDS base URL. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID)
Performs a meta data lookup operation for the list of bridging elements belonging to a specific federation; the MDS URL will be composed of the base URL and the 'federationID'. |
org.opensaml.xml.XMLObject |
lookupMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
Performs a meta data lookup operation for a specific BE interface; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the bridging element. |
void |
publishMetaData(java.lang.String federationID,
java.lang.String entityID,
BEMetaData beMetaData)
Performs a meta data publish operation in order to register at the MDS meta data related to a BE within the local federation; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the concerned BE |
void |
publishMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID,
BEMetaData beMetaData)
Performs a meta data publish operation in order to register at the MDS meta data related to a BE within the local federation; the MDS URL will be composed of the base URL, the 'federationID' and the 'entityID' of the concerned BE. |
java.util.ArrayList<BEMetaData> |
searchMetaData(java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified home locators; the MDS URL will be composed of the base URL and the list of home locators associated with the pricipal. |
java.util.ArrayList<BEMetaData> |
searchMetaData(java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified federation and home locators; the MDS URL will be composed of the base URL, the 'federationID' and the list of home locators associated with the pricipal. |
java.util.ArrayList<BEMetaData> |
searchMetaData(java.net.URL mdsBase,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified home locators; the MDS URL will be composed of the base URL and the list of home locators associated with the pricipal. |
java.util.ArrayList<BEMetaData> |
searchMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified federation and home locators; the MDS URL will be composed of the base URL, the 'federationID' and the list of home locators associated with the pricipal. |
org.opensaml.xml.XMLObject |
searchMetaDataRoot(java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified home locators; the MDS URL will be composed of the base URL and the list of home locators associated with the pricipal. |
org.opensaml.xml.XMLObject |
searchMetaDataRoot(java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified federation and home locators; the MDS URL will be composed of the base URL, the 'federationID' and the list of home locators associated with the pricipal. |
org.opensaml.xml.XMLObject |
searchMetaDataRoot(java.net.URL mdsBase,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified home locators; the MDS URL will be composed of the base URL and the list of home locators associated with the pricipal. |
org.opensaml.xml.XMLObject |
searchMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
Performs a meta data search operation for the BE interfaces corresponding to the specified federation and home locators; the MDS URL will be composed of the base URL, the 'federationID' and the list of home locators associated with the pricipal. |
void |
setMdsBaseUrl(java.net.URL mdsBase)
Sets the MDS base URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.net.URL mdsBaseUrl
private java.net.URL mdsUrl
private ComponentID valCompID
private MetaDataRequester mdRequester
private MetaDataPublisher mdPublisher
| Constructor Detail |
|---|
public RESTClientImpl()
public RESTClientImpl(java.net.URL mdsBase)
mdsBase - the MDS base URL| Method Detail |
|---|
public java.util.ArrayList<BEMetaData> lookupMetaData(java.net.URL mdsBase)
throws MetaQueryException
lookupMetaData in interface RESTClientmdsBase - the MDS base URL
MetaQueryException
public java.util.ArrayList<BEMetaData> lookupMetaData()
throws MetaQueryException
lookupMetaData in interface RESTClientMetaQueryException
public org.opensaml.xml.XMLObject lookupMetaDataRoot(java.net.URL mdsBase)
throws MetaQueryException
lookupMetaDataRoot in interface RESTClientmdsBase - the MDS base URL
MetaQueryException
public org.opensaml.xml.XMLObject lookupMetaDataRoot()
throws MetaQueryException
lookupMetaDataRoot in interface RESTClientMetaQueryException
public java.util.ArrayList<BEMetaData> lookupMetaData(java.net.URL mdsBase,
java.lang.String federationID)
throws MetaQueryException,
ValidationException
lookupMetaData in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federation
MetaQueryException
ValidationException
public java.util.ArrayList<BEMetaData> lookupMetaData(java.lang.String federationID)
throws MetaQueryException,
ValidationException
lookupMetaData in interface RESTClientfederationID - the unique identifier of the principal's federation
MetaQueryException
ValidationException
public org.opensaml.xml.XMLObject lookupMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID)
throws MetaQueryException,
ValidationException
lookupMetaDataRoot in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federation
MetaQueryException
ValidationException
public org.opensaml.xml.XMLObject lookupMetaDataRoot(java.lang.String federationID)
throws MetaQueryException,
ValidationException
lookupMetaDataRoot in interface RESTClientfederationID - the unique identifier of the principal's federation
MetaQueryException
ValidationException
public BEMetaData lookupMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
throws MetaQueryException,
ValidationException
lookupMetaData in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federationentityID - the unique identifier of the bridging element
MetaQueryException
ValidationException
public BEMetaData lookupMetaData(java.lang.String federationID,
java.lang.String entityID)
throws MetaQueryException,
ValidationException
lookupMetaData in interface RESTClientfederationID - the unique identifier of the principal's federationentityID - the unique identifier of the bridging element
MetaQueryException
ValidationException
public org.opensaml.xml.XMLObject lookupMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
throws MetaQueryException,
ValidationException
lookupMetaDataRoot in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federationentityID - the unique identifier of the bridging element
MetaQueryException
ValidationException
public org.opensaml.xml.XMLObject lookupMetaDataRoot(java.lang.String federationID,
java.lang.String entityID)
throws MetaQueryException,
ValidationException
lookupMetaDataRoot in interface RESTClientfederationID - the unique identifier of the principal's federationentityID - the unique identifier of the bridging element
MetaQueryException
ValidationException
public java.util.ArrayList<BEMetaData> searchMetaData(java.net.URL mdsBase,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaData in interface RESTClientmdsBase - the MDS base URLhomeloc - the list of home locators
MetaQueryException
ValidationException
public java.util.ArrayList<BEMetaData> searchMetaData(java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaData in interface RESTClienthomeloc - the list of home locators
MetaQueryException
ValidationException
public org.opensaml.xml.XMLObject searchMetaDataRoot(java.net.URL mdsBase,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaDataRoot in interface RESTClientmdsBase - the MDS base URLhomeloc - the list of home locators
ValidationException
MetaQueryException
public org.opensaml.xml.XMLObject searchMetaDataRoot(java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaDataRoot in interface RESTClienthomeloc - the list of home locators
MetaQueryException
ValidationException
public java.util.ArrayList<BEMetaData> searchMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaData in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federationhomeloc - the list of home locators
MetaQueryException
ValidationException
public java.util.ArrayList<BEMetaData> searchMetaData(java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaData in interface RESTClientfederationID - the unique identifier of the principal's federationhomeloc - the list of home locators
ValidationException
MetaQueryException
public org.opensaml.xml.XMLObject searchMetaDataRoot(java.net.URL mdsBase,
java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
searchMetaDataRoot in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the principal's federationhomeloc - the list of home locators
ValidationException
MetaQueryException
public org.opensaml.xml.XMLObject searchMetaDataRoot(java.lang.String federationID,
java.util.ArrayList<HomeLocator> homeloc)
throws MetaQueryException,
ValidationException
federationID - the unique identifier of the principal's federationhomeloc - the list of home locators
MetaQueryException
ValidationException
public void publishMetaData(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID,
BEMetaData beMetaData)
throws MetaQueryException
publishMetaData in interface RESTClientmdsBase - the MDS base URLfederationID - the unique identifier of the local federationentityID - the unique identifier of the concerned BEbeMetaData - the BEMetaData object subject to publishing
MetaQueryException
public void publishMetaData(java.lang.String federationID,
java.lang.String entityID,
BEMetaData beMetaData)
throws MetaQueryException
publishMetaData in interface RESTClientfederationID - the unique identifier of the local federationentityID - the unique identifier of the concerned BEbeMetaData - the BEMetaData object subject to publishing
MetaQueryExceptionpublic java.net.URL getMdsUrl()
getMdsUrl in interface RESTClientpublic java.net.URL getMdsBaseUrl()
getMdsBaseUrl in interface RESTClientpublic void setMdsBaseUrl(java.net.URL mdsBase)
public ComponentID getValCompID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||