Changeset 3675


Ignore:
Timestamp:
2003-01-17T10:25:36+13:00 (21 years ago)
Author:
kjdon
Message:

added new cgi args

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSCGI.java

    r3641 r3675  
    1111
    1212    // the args that are used in the interface
    13     public static final String ACTION_ARG = "a";
    14     public static final String SUBACTION_ARG = "sa";
    15     public static final String CLUSTER_ARG = "c"; 
     13    public static final String ACTION_ARG = "a"; // the major type of action- eg query or browse or process
     14    public static final String SUBACTION_ARG = "sa"; // subtype of action if we want different processing than the default
     15    public static final String REQUEST_TYPE_ARG = "rt"; // whether the request is just to display the service form, or to actually do a request to teh service
     16    public static final String REQUEST_ONLY_ARG = "ro"; // if == 1 do the request and pass back the xml - no page formatting
     17    public static final String OUTPUT_ARG = "o"; // if processing is to be done, what type of output - html/xml/other??
     18    public static final String SERVICE_ARG = "s"; // the name of the service
     19    public static final String CLUSTER_ARG = "c";   // these two are the same
    1620    public static final String COLLECTION_ARG = "c";
    1721    public static final String LANGUAGE_ARG = "l";
    1822    public static final String DOCUMENT_ARG = "d";
    1923    public static final String RESOURCE_ARG = "r";
    20     public static final String OUTPUT_ARG = "o";
    21     public static final String SERVICE_ARG = "s";
    22     public static final String PROCESS_HANDLE_ARG = "id";
     24    public static final String PROCESS_HANDLE_ARG = "id"; // if a request wasn't completed, this identifies the request - used when asking for a status update
    2325   
    2426    /** long to short mapping */
     
    3335
    3436    // initialize with the ones we know about
    35     addStaticParam(ACTION_ARG); // action
    36     addStaticParam(SUBACTION_ARG); // subaction
    37     addStaticParam(CLUSTER_ARG); // cluster
    38     addStaticParam(COLLECTION_ARG); // collection
    39     addStaticParam(LANGUAGE_ARG); // language
    40     addStaticParam(DOCUMENT_ARG); // document
    41     addStaticParam(RESOURCE_ARG); // resource
    42     addStaticParam(OUTPUT_ARG); // output type
    43     addStaticParam(SERVICE_ARG); // service name
    44     addStaticParam(PROCESS_HANDLE_ARG); // an id used to query the status of a specified process
     37    addStaticParam(ACTION_ARG);
     38    addStaticParam(SUBACTION_ARG);
     39    addStaticParam(REQUEST_TYPE_ARG);
     40    addStaticParam(REQUEST_ONLY_ARG);
     41    addStaticParam(CLUSTER_ARG);
     42    addStaticParam(COLLECTION_ARG);
     43    addStaticParam(LANGUAGE_ARG);
     44    addStaticParam(DOCUMENT_ARG);
     45    addStaticParam(RESOURCE_ARG);
     46    addStaticParam(OUTPUT_ARG);
     47    addStaticParam(SERVICE_ARG);
     48    addStaticParam(PROCESS_HANDLE_ARG);
    4549    }
    4650
Note: See TracChangeset for help on using the changeset viewer.