Class TE

java.lang.Object
org.apache.tomcat.util.http.parser.TE

public class TE extends Object
Represents a Transfer-Encoding value with optional parameters and quality factor.
  • Constructor Details

    • TE

      protected TE(String encoding, Map<String,String> parameters, double quality)
      Constructs a new TE instance.
      Parameters:
      encoding - the encoding name
      parameters - the parameters
      quality - the quality factor
  • Method Details

    • getEncoding

      public String getEncoding()
      Returns the encoding name.
      Returns:
      the encoding name
    • getParameters

      public Map<String,String> getParameters()
      Returns the parameters for this encoding.
      Returns:
      the parameters map
    • getQuality

      public double getQuality()
      Returns the quality factor.
      Returns:
      the quality factor
    • parse

      public static List<TE> parse(StringReader input) throws IOException
      Parses a Transfer-Encoding header value into a list of TE instances.
      Parameters:
      input - the input reader containing the header value
      Returns:
      the list of parsed TE values
      Throws:
      IOException - if a parsing error occurs