|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.meta.publish.MetaDataPublisher
public class MetaDataPublisher
This class implements a HTTP or HTTPS client which posts the given data to the provided Metadata Service (MDS) URL
| Field Summary | |
|---|---|
private Configurator |
cfg
eduGAIN Configurator used to retrieve keystore information |
private static org.slf4j.Logger |
log
Class logger. |
private MetaDataMarshaller |
mdMarshaller
Marshaller object used to convert the data into SAML2 XML before publishing to the MDS |
private java.net.HttpURLConnection |
mdsConnection
The URLConnection to the MDS |
private int |
publishRespCode
The HTTP response code received after publishing |
private java.lang.String |
publishRespMessage
The HTTP response message received after publishing |
| Constructor Summary | |
|---|---|
MetaDataPublisher()
Constructor |
|
| Method Summary | |
|---|---|
void |
beDelete(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
Deleting function used by an authorized bridging element(BE) in order to delete their own metadata from the MDS |
void |
bePublish(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID,
BEMetaData bemd)
Publishing function used by an authorized bridging element(BE) in order to publish its own metadata to the MDS |
void |
deleteMetaData(java.lang.String url)
General delete method; opens a connection to the given URL and deletes the metadata associated with the given entity or federation. |
void |
fppDelete(java.net.URL mdsBase,
java.lang.String federationID)
Deleting function used centrally by an FPP in order to delete metadata about BE(s) within its federation |
void |
fppPublish(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String fppCompID,
java.util.ArrayList<BEMetaData> bemdlist)
Publishing function used centrally by an FPP in order to publish metadata about BE(s) within its federation |
int |
getPublishRespCode()
Gets the REST/HTTP response code |
java.lang.String |
getPublishRespMessage()
Gets the REST/HTTP response message |
void |
publishMetaData(java.lang.String url,
java.lang.String xmlString)
General publishing method; opens a connection to the given URL and posts the data from the provided file. |
void |
publishMetaData(java.net.URL url,
java.lang.String data)
General publishing method; opens a connection to the given URL and posts the provided data. |
void |
publishMetaDataFile(java.lang.String url,
java.lang.String file)
General publishing method; opens a connection to the given URL and posts the data from the provided file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Configurator cfg
private java.net.HttpURLConnection mdsConnection
private MetaDataMarshaller mdMarshaller
private int publishRespCode
private java.lang.String publishRespMessage
private static org.slf4j.Logger log
| Constructor Detail |
|---|
public MetaDataPublisher()
| Method Detail |
|---|
public void publishMetaData(java.net.URL url,
java.lang.String data)
throws MetaPublishException
url - the MDS URL used for opening the connectiondata - a String containing the data to be posted
MetaPublishException
public void publishMetaData(java.lang.String url,
java.lang.String xmlString)
throws MetaPublishException
url - a string containing the MDS URL used for opening the connectionxmlString - the data to be posted
MetaPublishException
public void publishMetaDataFile(java.lang.String url,
java.lang.String file)
throws MetaPublishException
url - a string containing the MDS URL used for opening the connectionfile - the file containing the data to be posted
MetaPublishException
public void bePublish(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID,
BEMetaData bemd)
throws MetaPublishException
mdsBase - the MDS base URLfederationID - the federation name to which the BE belongsentityID - the BE namebemd - the BEMetaData subject to publishing
eduGMetaPublishException
MetaPublishException
public void fppPublish(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String fppCompID,
java.util.ArrayList<BEMetaData> bemdlist)
throws MetaPublishException
mdsBase - the MDS base URLfederationID - the federation namefppCompID - the component ID of the publishing FPPbemdlist - the list of BEMetaData objects subject to publishing
eduGMetaPublishException
MetaPublishException
public void deleteMetaData(java.lang.String url)
throws MetaPublishException
url - a string containing the MDS URL used for opening the connection
MetaPublishException
public void beDelete(java.net.URL mdsBase,
java.lang.String federationID,
java.lang.String entityID)
throws MetaPublishException
mdsBase - the MDS base URLfederationID - the federation name to which the BE belongsentityID - the BE name
eduGMetaPublishException
MetaPublishException
public void fppDelete(java.net.URL mdsBase,
java.lang.String federationID)
throws MetaPublishException
mdsBase - the MDS base URLfederationID - the federation name
MetaPublishExceptionpublic int getPublishRespCode()
public java.lang.String getPublishRespMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||