dk.netarkivet.harvester.webinterface
Class DomainConfigurationDefinition

java.lang.Object
  extended by dk.netarkivet.harvester.webinterface.DomainConfigurationDefinition

public class DomainConfigurationDefinition
extends java.lang.Object

Utility class containing methods for processing a GUI-request to update the details of a domain-configuration.


Constructor Summary
DomainConfigurationDefinition()
           
 
Method Summary
static void processRequest(javax.servlet.jsp.PageContext context, I18n i18n)
          Extracts all required parameters from the request, checks for any inconsistencies, and passes the requisite data to the updateDomain method for processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainConfigurationDefinition

public DomainConfigurationDefinition()
Method Detail

processRequest

public static void processRequest(javax.servlet.jsp.PageContext context,
                                  I18n i18n)
Extracts all required parameters from the request, checks for any inconsistencies, and passes the requisite data to the updateDomain method for processing. The specified domain configuration is then updated and the result stored in the database. update: This method does nothing if update is not set name: must be the name of a known domain default: the defaultconfig is set to this value. Must be non-null and a known configuration of this domain. edition: The edition number the config was originally read as, if any. (configName, order_xml, maxRate, maxObjects, maxBytes, urlListList[], passwordList): group specifying a configuration to update or add. If configName is non null then order_xml must be a known order-xml and urlListList must contain only known seedlists, (and at least one such). load, maxObjects, maxBytes, edition must be parsable as integers if present. passwordList is currently ignored.

Parameters:
context - The context of this request
i18n - I18n information
Throws:
ForwardedToErrorPage - if a user error has caused forwarding to the error page, in which case processing should abort.