String prefix = ConfigurationManager.getProperty("handle.item.prefix"); String url = new StringBuffer() .append(prefix) .append((prefix != null) && (!prefix.endsWith("/")) ? "/" : "") .append(handle) .toString();
String prefix = ConfigurationManager.getProperty("dspace.url"); String url = prefix + "/item/" + handle;
    public static String resolveToURL(Context context, String handle)        throws SQLException    {        TableRow dbhandle = findHandleInternal(context, handle);        if (dbhandle == null)            return null;        int handletypeid = dbhandle.getIntColumn("resource_type_id");        if (handletypeid == Constants.ITEM)        {            String prefix = ConfigurationManager.getProperty("handle.item.prefix");            String url = new StringBuffer()                .append(prefix)                .append((prefix != null) && (!prefix.endsWith("/")) ? "/" : "")                .append(handle)                .toString();            if (log.isDebugEnabled())                log.debug("Resolved " + handle + " to " + url);            return url;        }        throw new IllegalArgumentException("Only Item handles are currently supported");    }