Interface Detector


public interface Detector
Attempt to detect the content format to select a parser.
Author:
Matt Hamer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    detect(String body, String contentType)
    Examines the response body and content type to attempt to determine the format of the content to be parsed.
  • Method Details

    • detect

      static Detector.Format detect(String body, String contentType)
      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 UNKNOWN if detection failed.