Package com.attribyte.parser
Interface Detector
public interface Detector
Attempt to detect the content format to select a parser.
- Author:
- Matt Hamer
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Detector.FormatExamines the response body and content type to attempt to determine the format of the content to be parsed.
-
Method Details
-
detect
Examines the response body and content type to attempt to determine the format of the content to be parsed.- Parameters:
body- The response body.contentType- The content type header value, if known.- Returns:
- The format or
UNKNOWNif detection failed.
-