Ignore:
Timestamp:
2003-03-19T14:18:45+12:00 (21 years ago)
Author:
kjdon
Message:

added new method createBasicRequest

File:
1 edited

Legend:

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

    r3899 r3907  
    117117    public static final String REQUEST_TYPE_STATUS = "status";
    118118    public static final String REQUEST_TYPE_PROCESS = "process";
    119 
    120     public static final String REQUEST_TYPE_CONFIGURE = "configure"; // ?
    121     public static final String REQUEST_TYPE_CGI = "cgi"; // ?
     119    public static final String REQUEST_TYPE_CONFIGURE = "configure";
     120    public static final String REQUEST_TYPE_CGI = "cgi";
     121    public static final String REQUEST_TYPE_FORMAT = "format";
    122122
    123123    public static final String REQUEST_TYPE_ACTION = "action"; // ??
     
    318318    }
    319319       
     320
     321    /** returns a basic request message */
     322    public static  Element createBasicRequest(Document owner,
     323                          String request_type, String to,
     324                          String lang) {
     325    Element request = owner.createElement(REQUEST_ELEM);
     326    request.setAttribute(TYPE_ATT, request_type);
     327    request.setAttribute(LANG_ATT, lang);
     328    request.setAttribute(TO_ATT, to);
     329    return request;
     330    }
    320331    public static Element createTextElement(Document owner, String elem_name,
    321332                        String text) {
Note: See TracChangeset for help on using the changeset viewer.