Ignore:
Timestamp:
2012-05-10T17:32:18+12:00 (12 years ago)
Author:
ak19
Message:

Added a ping SystemAction to mirror GS2's updated ability to ping the server as is needed for activate.pl. (GS2 also allows pinging a collection, but that's not been ported to GS3 yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/SystemAction.java

    r25481 r25571  
    7474            system.setAttribute(GSXML.SYSTEM_SUBSET_ATT, info);
    7575        }
     76        else if (subaction.equals("ping")){
     77            // No pinging on collections yet in GS3 as is there in GS2
     78            // The ping subaction is at present just for activate.pl
     79            system.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_PING);
     80        }
     81        //else if (subaction.equals("is-persistent")){
     82        //  system.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_ISPERSISTENT);
     83        //}
    7684        else
    7785        {
Note: See TracChangeset for help on using the changeset viewer.