Ignore:
Timestamp:
04/04/12 08:38:32 (12 years ago)
Author:
gaba
Message:

cache changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java

    r1832 r1852  
    8282        }
    8383
     84        public String getOperation() {
     85                return getParam("operation");
     86        }
     87       
    8488        /**
    8589         * Empty implementation, subclasses have to decide themselves, which proxy to take.
     
    464468         */
    465469       
    466          public String getRequestKey() {
    467                         String key="";
    468                         if (getActionkey()!=null) {
    469                                 key += getActionkey() + "//-" ;
    470                         }else {
    471                                 key +="//-" ;
    472                         }
    473                         if (getQuery()!=null) {
    474                                 key += getQuery() + "//-" ;
    475                         } else {
    476                                 key +="//-" ;
    477                         }
    478                         if (getCollections()!=null) {
    479                                 key += getCollections() + "//-";
    480                         } else {
    481                                 key +="//-" ;
    482                         }
    483                         if (this.getStartRecord()!=null) {
    484                                 key += getStartRecord() + "//-";
    485                         }
    486                                 else{
    487                                         key +="//-" ;
    488                         }
    489                         if (getMaximumRecords()!=null) {
    490                                 key += getMaximumRecords() + "//-";
    491                         }
    492                         else{
    493                                 key +="//-" ;
    494                         }
    495                        
    496                         key += getRepository()  + "//-";
    497                         key += getMaxdepth()  + "//-";
    498                        
    499                         if (getLang()!=null) {
    500                                 key += getLang() + "//-";
    501                         }else{
    502                                 key +="//-" ;
    503                         }                       
    504 
    505                 return key;
    506         }
     470        public String getRequestKey() {
     471                String key="";
     472                if (getActionkey()!=null) {
     473                        key += getActionkey() + "//-" ;
     474                }else {
     475                        key +="//-" ;
     476                }
     477                if (!getQuery().equals("")) {
     478                        key += getQuery() + "//-" ;
     479                } else {
     480                        key += getScanClause() + "//-" ;
     481                }
     482                key += getOperation() + "//-";
     483               
     484                key += getCollections() + "//-";
     485               
     486                key += getStartRecord() + "//-";
     487               
     488                key += getMaximumRecords() + "//-";
     489               
     490                key += getRepository()  + "//-";
     491                key += getMaxdepth()  + "//-";
     492               
     493                key += getLang() + "//-";
     494               
     495        return key;
     496}
    507497       
    508498         
Note: See TracChangeset for help on using the changeset viewer.