Google Search Appliance Administrative API Developers Gui Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 56
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
Google Search Appliance: Administrative API Developer’s Guide: Java 18
Retrieving a List of Connector Managers
Retrieve a list of connector managers as follows:
// Send the request and print the response
GsaFeed myFeed = myClient.getFeed("connectorManager");
for(GsaEntry myEntry : myFeed.getEntries()) {
System.out.println("Status: " + myEntry.getGsaContent("status"));
System.out.println("Description: " + myEntry.getGsaContent("description"));
System.out.println("URL: " + myEntry.getGsaContent("url"));
}
Retrieve an individual connector manager as follows:
// Send the request and print the response
GsaEntry myEntry = myClient.getEntry("connectorManager", "ConnectorManagerOne");
System.out.println("Status: " + myEntry.getGsaContent("status"));
System.out.println("Description: " + myEntry.getGsaContent("description"));
System.out.println("URL: " + myEntry.getGsaContent("url"));
Updating a Connector Manager
Update the description and URL for a connector manager as follows:
// Create an entry to hold the properties to update
GsaEntry updateEntry = new GsaEntry();
// Add properties to updateEntry
updateEntry.addGsaContent("description", "new description");
updateEntry.addGsaContent("url", "#new URL");
// Send the request
myClient.updateEntry("connectorManager", "ConnectorManagerOne", updateEntry);
Deleting a Connector Manager
Delete a connector manager as follows:
myClient.deleteEntry("connectorManager", "ConnectorManagerOne");
OneBox Modules Settings
Retrieve and update OneBox module settings for the search appliance using the
config
feed.
Retrieving OneBox Module Settings
Retrieve OneBox information for a search appliance as follows:
// Send the request and print the response
GsaEntry myEntry = myClient.getEntry("config", "oneboxSetting");
System.out.println("Max Results: " + myEntry.getGsaContent("maxResults"));
System.out.println("Timeout: " + myEntry.getGsaContent("timeout"));
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 55 56

Comentarios a estos manuales

Sin comentarios