From: Dave B. <bla...@us...> - 2011-06-04 10:33:13
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem/indications In directory vz-cvs-3.sog:/tmp/cvs-serv3488/src/org/sblim/cimclient/internal/wbem/indications Modified Files: CIMIndicationHandler.java Log Message: 3304953 - Indication URL mapped to lower case Index: CIMIndicationHandler.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem/indications/CIMIndicationHandler.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- CIMIndicationHandler.java 4 Jun 2011 10:14:26 -0000 1.21 +++ CIMIndicationHandler.java 4 Jun 2011 10:33:10 -0000 1.22 @@ -32,6 +32,7 @@ * 3185763 2011-02-25 blaschke-oss Reliable indication support - Phase 1 * 3288721 2011-05-20 blaschke-oss Need the function of indication reordering * 3304058 2011-05-20 blaschke-oss Use same date format in change history + * 3304953 2011-05-20 blaschke-oss Indication URL mapped to lower case */ package org.sblim.cimclient.internal.wbem.indications; @@ -323,19 +324,21 @@ if (cimEvent instanceof CIMInstance) { CIMInstance indicationInst = (CIMInstance) cimEvent; - String path = pReader.getMethod().getFile().toLowerCase(); - String id = path; + String path = pReader.getMethod().getFile(); + String id; if (path == null) { id = pLocalAddress + "/"; } else if (path.equalsIgnoreCase("/cimom")) { id = path; - } else if (!path.startsWith("http")) { + } else if (path.length() < 4 || !path.regionMatches(true, 0, "http", 0, 4)) { if (path.startsWith("/")) { id = pLocalAddress + path; } else { id = pLocalAddress + "/" + path; } + } else /* path.startsWith("http") */{ + id = path; } if (this.iReliableIndicationsDisabled |