Class DetectorResponseDTO

    • Constructor Detail

      • DetectorResponseDTO

        public DetectorResponseDTO()
      • DetectorResponseDTO

        public DetectorResponseDTO​(DetectResults results)
      • DetectorResponseDTO

        public DetectorResponseDTO​(java.lang.Throwable t)
    • Method Detail

      • isDetected

        public boolean isDetected()
      • setDetected

        public void setDetected​(boolean detected)
      • addAttribute

        public void addAttribute​(java.lang.String key,
                                 java.lang.String value)
      • addAttributes

        public void addAttributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)
      • getAttributesMap

        public java.util.Map<java.lang.String,​java.lang.String> getAttributesMap()
      • isServiceDetected

        public boolean isServiceDetected()
        Specified by:
        isServiceDetected in interface DetectResults
        Returns:
        true if the service was detected, false otherwise
      • getServiceAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getServiceAttributes()
        Specified by:
        getServiceAttributes in interface DetectResults
        Returns:
        additional attributes from the detector invocation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getErrorMessage

        public java.lang.String getErrorMessage()
        Description copied from interface: RpcResponse
        Returns an error message if an error occurred, or null otherwise.
        Specified by:
        getErrorMessage in interface RpcResponse
        Returns:
        an error message if an error occurred, or null otherwise