public class DetectorResponseDTO extends Object implements DetectResults, RpcResponse
Constructor and Description |
---|
DetectorResponseDTO() |
DetectorResponseDTO(DetectResults results) |
DetectorResponseDTO(Throwable t) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
String value) |
void |
addAttributes(Map<String,String> attributes) |
boolean |
equals(Object obj) |
List<DetectorAttributeDTO> |
getAttributes() |
Map<String,String> |
getAttributesMap() |
String |
getErrorMessage()
Returns an error message if an error occurred, or
null otherwise. |
Map<String,String> |
getServiceAttributes() |
int |
hashCode() |
boolean |
isDetected() |
boolean |
isServiceDetected() |
void |
setDetected(boolean detected) |
public DetectorResponseDTO()
public DetectorResponseDTO(DetectResults results)
public DetectorResponseDTO(Throwable t)
public boolean isDetected()
public void setDetected(boolean detected)
public List<DetectorAttributeDTO> getAttributes()
public boolean isServiceDetected()
isServiceDetected
in interface DetectResults
public Map<String,String> getServiceAttributes()
getServiceAttributes
in interface DetectResults
public String getErrorMessage()
RpcResponse
null
otherwise.getErrorMessage
in interface RpcResponse
null
otherwiseCopyright © 2020. All rights reserved.