Changeset 1510 for MDService2


Ignore:
Timestamp:
09/03/11 12:17:02 (13 years ago)
Author:
vronk
Message:

now, it at least compiles

Location:
MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java

    r1509 r1510  
    231231                long startMillis = System.currentTimeMillis();
    232232                long timeout = 0;
    233                 if (this.getWPOption("pazpartimeout") == null){
     233                if (WorkspaceProfile.getOption("pazpartimeout") == null){
    234234                        timeout = 1000;
    235235                } else {
    236                         timeout = Integer.parseInt(this.getWPOption("pazpartimeout"));
     236                        timeout = Integer.parseInt(WorkspaceProfile.getOption("pazpartimeout"));
    237237                }
    238238                while (Integer.parseInt(activeclients) > 0){
  • MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/RepoProxyAction.java

    r1509 r1510  
    147147                                        return getSourcePz2();
    148148                                } catch (Exception e) {
    149                                         // TODO Auto-generated catch block
     149                                        // TODO Auto-,generated catch block
    150150                                        e.printStackTrace();
    151151                                }
     
    189189                Admin.notifyUser("RPA.getActionkey:" + getActionkey());         
    190190               
    191                 Query query = new Query(getSquery(), getQ(),getActionkey());
    192 
    193         // check if the query could get parsed
    194                 if (query.isStatus(Query.PARSEERROR)) {
    195                         Admin.notifyUser("RPA.query.PARSEERROR:" + query.getMsg());
    196                         // pass this bad news to the client
    197                         setUserMsg(query.getMsg());
    198                         return null;
    199                 } else {
    200                         query.setMaxdepth(getMaxdepth());               
    201                         query.setCollection(getCollection());
    202                         query.setColumns(getColumns());
    203                         query.setMaximumItems(getMaximumItems());
    204                         query.setStartItem(getStartItem());
    205                         query.setOptions(getOptions());
    206                         query.setSort(getSort());
    207                
    208                         URL targetURL = null;
    209                         targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() );
    210                         Admin.notifyUser("RPA.targetURL.query.toURLParam:" + query.toURLParam());
     191               
     192//              Query query = new Query(getSquery(), getQ(),getActionkey());
     193
     194                 
     195                        URL targetURL = getTargetProxy().getTargetRequest();
     196                        // targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() );
     197                       
     198                        //Admin.notifyUser("RPA.targetURL.query.toURLParam:" + query.toURLParam());
    211199                        Admin.notifyUser("RPA.targetURL:" + targetURL);
    212200                return targetURL;
    213                 }
     201               
    214202        }
    215203
  • MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/SRUProxyAction.java

    r1509 r1510  
    442442        }
    443443       
     444/** TODO: move to Utils
     445 *
     446 * @param stream
     447 * @return
     448 * @throws IOException
     449 */
    444450        public static String inputStreamAsString(InputStream stream)
    445451                throws IOException {
Note: See TracChangeset for help on using the changeset viewer.