Code example for URI

Methods: toASCIIString

0
	public URI listDownladURI(URI pdURI) throws SOAPException {
    	log.fine("DataManager::listDownloadURI(URI pdURI)");
    	URI _retVal = null;
    	PDURI _parsedURI = null;
    	try { 
        	_parsedURI = new PDURI(pdURI);
    		// Check that the item exists, if not throw a SOAP Exception 
    		if (!this.jcrManager.nodeExists(_parsedURI.getDataRegistryPath())) {
    			String _message = "DataManager.listDownloadURI() Cannot locate item " + pdURI.toASCIIString(); 
    			log.fine(_message);;
    			throw new SOAPException(_message);
    		} 
    	} catch (URISyntaxException _exp) {
			String _message = "DataManager.listDownloadURI() " + pdURI.toASCIIString() + " is not a PLANETS Data Registry URI."; 
			log.fine(_message+": "+_exp.getMessage());
			throw new SOAPException(_message, _exp);
    	} catch (RepositoryException _exp) {
			String _message = "DataManager.listDownloadURI() Repository call failed."; 
			log.fine(_message+": "+_exp.getMessage());
			throw new SOAPException(_message, _exp);
    	}