version 1.1.2.2, 2001/11/08 20:02:27
|
version 1.1.2.3, 2001/11/15 20:15:24
|
|
|
if (qualifierPos != PEG_NOT_FOUND) | if (qualifierPos != PEG_NOT_FOUND) |
{ | { |
CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos); | CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos); |
enterprise = trapQualifier.getValue().toString(); |
// ATTN: Catch TypeMismatch exception on the next line |
|
trapQualifier.getValue().get(enterprise); |
| |
for (int i=0; i<indicationInstance.getPropertyCount();i++) | for (int i=0; i<indicationInstance.getPropertyCount();i++) |
{ | { |
|
|
{ | { |
if (propName == "trapOid") | if (propName == "trapOid") |
{ | { |
trapOid = prop.getValue().toString(); |
// ATTN: Catch TypeMismatch exception on the next line |
|
prop.getValue().get(trapOid); |
} | } |
else | else |
{ | { |
Uint32 qualifierPos = trapProp.findQualifier("MappingStrings"); | Uint32 qualifierPos = trapProp.findQualifier("MappingStrings"); |
CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos); | CIMQualifier trapQualifier = trapProp.getQualifier(qualifierPos); |
| |
String mapstr1 = trapQualifier.getValue().toString(); |
String mapstr1; |
|
// ATTN: Catch TypeMismatch exception on the next line |
|
trapQualifier.getValue().get(mapstr1); |
String mapstr2 = ""; | String mapstr2 = ""; |
| |
if ((mapstr1.find("OID") != PEG_NOT_FOUND) && | if ((mapstr1.find("OID") != PEG_NOT_FOUND) && |
|
|
mapstr2 = mapstr1.subString(0, mapstr1.find("|")); | mapstr2 = mapstr1.subString(0, mapstr1.find("|")); |
| |
propOIDs.append(mapstr2); | propOIDs.append(mapstr2); |
propVALUEs.append(prop.getValue().toString()); |
String propValue; |
|
// ATTN: Catch TypeMismatch exception on the next line |
|
prop.getValue().get(propValue); |
|
propVALUEs.append(propValue); |
propTYPEs.append(mapstr1.subString(mapstr1.find("|")+1)); | propTYPEs.append(mapstr1.subString(mapstr1.find("|")+1)); |
} | } |
} | } |
|
|
if ((handlerInstance.findProperty("Destination") != PEG_NOT_FOUND) && | if ((handlerInstance.findProperty("Destination") != PEG_NOT_FOUND) && |
(handlerInstance.findProperty("trapType") != PEG_NOT_FOUND)) | (handlerInstance.findProperty("trapType") != PEG_NOT_FOUND)) |
{ | { |
|
String destination; |
|
String trapType; |
|
// ATTN: Add error checking |
|
// ATTN: Catch TypeMismatch exception on the next line |
|
handlerInstance.getProperty( |
|
handlerInstance.findProperty("Destination")) |
|
.getValue().get(destination); |
|
// ATTN: Add error checking |
|
// ATTN: Catch TypeMismatch exception on the next line |
|
handlerInstance.getProperty( |
|
handlerInstance.findProperty("trapType")) |
|
.getValue().get(trapType); |
|
|
emanateTrap.deliverTrap(trapOid, | emanateTrap.deliverTrap(trapOid, |
enterprise, | enterprise, |
handlerInstance.getProperty(handlerInstance.findProperty("Destination")) |
destination, |
.getValue().toString(), |
trapType, |
handlerInstance.getProperty(handlerInstance.findProperty("trapType")) |
|
.getValue().toString(), |
|
propOIDs, | propOIDs, |
propTYPEs, | propTYPEs, |
propVALUEs); | propVALUEs); |