org.apache.jmeter.protocol.http.util
Class ConversionUtils
java.lang.Object
org.apache.jmeter.protocol.http.util.ConversionUtils
- public class ConversionUtils
- extends Object
General purpose conversion utilities related to HTTP/HTML
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversionUtils
public ConversionUtils()
getEncodingFromContentType
public static String getEncodingFromContentType(String contentType)
- Extract the encoding (charset) from the Content-Type,
e.g. "text/html; charset=utf-8".
- Parameters:
contentType
-
- Returns:
- the charset encoding - or null, if none was found or the charset is not supported
Copyright © 1998-2008 Apache Software Foundation. All Rights Reserved.