Github user cestella commented on a diff in the pull request:

    https://github.com/apache/metron/pull/643#discussion_r129532376
  
    --- Diff: 
metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/taxii/TaxiiLoader.java
 ---
    @@ -165,6 +167,19 @@ public static Options getOptions() {
       public static final long DEFAULT_TIME_BETWEEN_POLLS = ONE_HR_IN_MS;
     
     
    +  public static boolean isStixExtractor(Extractor e) {
    +    if(e instanceof StixExtractor) {
    +      return true;
    +    }
    +    else if(e instanceof ExtractorDecorator) {
    +      ExtractorDecorator decorator = (ExtractorDecorator)e;
    +      if(decorator.getUnderlyingExtractor() != null && 
decorator.getUnderlyingExtractor() instanceof StixExtractor) {
    +        return true;
    +      }
    +    }
    +    return false;
    +  }
    +
    --- End diff --
    
    good catch :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to