Changeset 6298


Ignore:
Timestamp:
2003-12-18T09:17:26+13:00 (20 years ago)
Author:
kjdon
Message:

new attribute for requests: uid. this is a user id that relates to a particular session

File:
1 edited

Legend:

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

    r6272 r6298  
    7373    public static final String NAME_ATT = "name";
    7474    public static final String TO_ATT = "to";
     75    public static final String USER_ID_ATT = "uid";
    7576    public static final String FROM_ATT = "from";
    7677    public static final String LANG_ATT = "lang";
     
    8889    public static final String PARAM_IGNORE_POS_ATT = "ignore";
    8990    public static final String CLASSIFIER_CONTENT_ATT = "content";
    90 
     91   
    9192    // document stuff
    9293    public static final String DOC_TYPE_ATT = "docType";
     
    422423    public static  Element createBasicRequest(Document owner,
    423424                          String request_type, String to,
    424                           String lang) {
     425                          String lang,
     426                          String uid) {
    425427    Element request = owner.createElement(REQUEST_ELEM);
    426428    request.setAttribute(TYPE_ATT, request_type);
    427429    request.setAttribute(LANG_ATT, lang);
    428430    request.setAttribute(TO_ATT, to);
     431    request.setAttribute(USER_ID_ATT, uid);
    429432    return request;
    430433    }
Note: See TracChangeset for help on using the changeset viewer.