Project

General

Profile

« Previous | Next » 

Revision 5339

Added by berkley almost 14 years ago

removed system.outs

View differences:

src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java
279 279

  
280 280
            if (resource != null) {
281 281
                resource = request.getServletPath().substring(1);
282
                System.out.println("accessing resource: " + resource);
283 282

  
284 283
                params = new Hashtable<String, String[]>();
285 284
                initParams();
......
346 345
                    if (identifierId != null && identifierId.length() > 1)
347 346
                        identifierId = request.getPathInfo().substring(1); //trim the slash
348 347

  
349
                    System.out.println("identifierId:" + identifierId);
350

  
351 348
                    if (httpVerb == GET) {
352 349
                        String op = params.get(FUNCTION_KEYWORD)[0];
353
                        System.out.println("op:" + op);
354 350
                        if (op.equals(FUNCTION_NAME_ISREGISTERED)) {
355 351
                            isRegistered(identifierId);
356 352
                            status = true;
src/edu/ucsb/nceas/metacat/DocumentImpl.java
3469 3469
                    parser.setFeature(SCHEMAVALIDATIONFEATURE, true);
3470 3470
                    
3471 3471
                    Vector<XMLSchema> schemaList = xmlss.findSchemasInXML((StringReader)xml);
3472
                    System.out.println("schemaList: " + schemaList.toString());
3473 3472
                    boolean allSchemasRegistered = 
3474 3473
                    	xmlss.areAllSchemasRegistered(schemaList);
3475
                    System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!are all schemas registered: " + allSchemasRegistered);
3476 3474
                    if (xmlss.useFullSchemaValidation() && !allSchemasRegistered) {
3477
                        System.out.println("setting full schema validation");
3478 3475
                    	parser.setFeature(FULLSCHEMAVALIDATIONFEATURE, true);
3479 3476
                    }
3480 3477
                    // From DB to find the register external schema location
3481 3478
                    String externalSchemaLocation = null;
3482 3479
                    externalSchemaLocation = xmlss.getNameSpaceAndLocationString();
3483
                    System.out.println("external schema location: " + externalSchemaLocation);
3484 3480
                    logMetacat.debug("DocumentImpl.initalizeParser - Generic external schema location: " + externalSchemaLocation);              
3485 3481
                    // Set external schemalocation.
3486 3482
                    if (externalSchemaLocation != null
3487 3483
                            && !(externalSchemaLocation.trim()).equals("")) {
3488
                    System.out.println("setting external schema location to " + externalSchemaLocation);
3489 3484
                        parser.setProperty(EXTERNALSCHEMALOCATIONPROPERTY,
3490 3485
                                externalSchemaLocation);
3491 3486
                    }
src/edu/ucsb/nceas/metacat/service/XMLSchemaService.java
191 191
		// get the system id from the xml_catalog table for all schemas.
192 192
		String sql = "SELECT public_id, system_id FROM xml_catalog where "
193 193
				+ "entry_type ='" + DocumentImpl.SCHEMA + "'";
194
        System.out.println("!!!!!!!!!!!!!!!!!!!!sql: " + sql);
195 194
		try {
196 195
			// check out DBConnection
197 196
			conn = DBConnectionPool
src/edu/ucsb/nceas/metacat/client/rest/MetacatRestClient.java
78 78
     */
79 79
	public String login(String username, String password)
80 80
	throws MetacatAuthException, MetacatInaccessibleException {
81
		System.out.println("in login");
82 81
	    String urlParams = FUNCTION_KEYWORD+"="+FUNCTION_NAME_LOGIN;
83 82
		String postData = "username="+username+"&password="+password;		
84 83
		String response = null;
......
563 562
		HttpURLConnection connection = null ;
564 563

  
565 564
		String restURL = contextRootUrl+resource;
566
		System.out.println("restURL: " + restURL);
567 565

  
568 566
		if (urlParamaters != null) {
569 567
			if (restURL.indexOf("?") == -1)				
......
572 570
		}
573 571

  
574 572
		URL u = new URL(restURL);
575
		System.out.println("url:"+restURL+ " postData:"+postData);
576 573
		URLConnection uc = u.openConnection();
577 574
		connection= (HttpURLConnection) uc;
578 575

  
src/edu/ucsb/nceas/metacat/dataone/CrudService.java
184 184
            InsufficientResources, InvalidSystemMetadata, NotImplemented {
185 185

  
186 186
        logMetacat.debug("Starting CrudService.create()...");
187
        System.out.println("sysmeta object format: " + sysmeta.getObjectFormat());
188 187
        
189 188
        // authenticate & get user info
190 189
        SessionData sessionData = getSessionData(token);
......
418 417
     */
419 418
    private boolean isScienceMetadata(SystemMetadata sysmeta) {
420 419
        boolean scimeta = false;
421
        System.out.println("sysmeta: " + sysmeta.toString());
422
        System.out.println("sysmeta format: " + sysmeta.getObjectFormat());
423 420
        switch (sysmeta.getObjectFormat()) {
424 421
            case EML_2_1_0: scimeta = true; break;
425 422
            case EML_2_0_1: scimeta = true; break;

Also available in: Unified diff