java.lang.Object
org.talend.sdk.component.runtime.manager.service.http.codec.CodecMatcher<T>
Type Parameters:
T - the type of object selected.

public class CodecMatcher<T> extends Object
Codec matcher using content type defined with ContentType on Decoder, Encoder implementations
  • Constructor Details

  • Method Details

    • select

      public T select(Map<String,T> codecList, String contentType)
      select the suitable codec for the content type
      Parameters:
      codecList - map of codec
      contentType - content type to be handled
      Returns:
      the suitable codec for the content type