private CIMObjectPath createHandler() throws WBEMException, ConnectionManagerException {
  CimListener listener=_connection.getIndicationListener();
  URL listenerURL=listener.getURL();
  if (listenerURL == null) {
    throw new ConnectionManagerException("Listener URL is not set, Subscription handler cannot be set.");
  }
  StringBuffer handlerNameBuff=new StringBuffer();
  handlerNameBuff.append(_subscriptionsIdentifier);
  handlerNameBuff.append(CimConstants.PATH_NAME_DELIMITER);
  handlerNameBuff.append(listenerURL.getHost());
  handlerNameBuff.append(CimConstants.PATH_NAME_DELIMITER);
  handlerNameBuff.append(listenerURL.getPort());
  String handlerName=handlerNameBuff.toString();
  CIMProperty<?> destinationProperty=new CIMProperty<String>(CimConstants.HANLDER_PROP_DESTINATION,CIMDataType.STRING_T,listenerURL.toString() + '/' + _connection.getConnectionName());
  CIMProperty<?>[] handlerProperties=new CIMProperty[]{destinationProperty};
  return createInstance(CimConstants.CIM_HANDLER_NAME,handlerName,handlerProperties);
}

private CIMObjectPath createHandler ( ) throws WBEMException , ConnectionManagerException { CimListener listener = _connection . getIndicationListener ( ) ; URL listenerURL = listener . getURL ( ) ; if ( listenerURL == null ) { throw new ConnectionManagerException ( "Listener URL is not set, Subscription handler cannot be set." ) ; } StringBuffer handlerNameBuff = new StringBuffer ( ) ; handlerNameBuff . append ( _subscriptionsIdentifier ) ; handlerNameBuff . append ( CimConstants . PATH_NAME_DELIMITER ) ; handlerNameBuff . append ( listenerURL . getHost ( ) ) ; handlerNameBuff . append ( CimConstants . PATH_NAME_DELIMITER ) ; handlerNameBuff . append ( listenerURL . getPort ( ) ) ; String handlerName = handlerNameBuff . toString ( ) ; CIMProperty < ? > destinationProperty = new CIMProperty < String > ( CimConstants . HANLDER_PROP_DESTINATION , CIMDataType . STRING_T , listenerURL . toString ( ) + '/' + _connection . getConnectionName ( ) ) ; CIMProperty < ? > [ ] handlerProperties = new CIMProperty [ ] { destinationProperty } ; return createInstance ( CimConstants . CIM_HANDLER_NAME , handlerName , handlerProperties ) ; }
creates an indication handler in the cimom from the indication listener ' s configuration . the wbem listener interface does not provide a mechanism for getting the source ip address of a received indication . to match indications with connections , the connection name is put in the handler ' s destination url as the path component .
