Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.protocol.http.util » [javadoc | source]
org.apache.jmeter.protocol.http.util
public class: ConversionUtils [javadoc | source]
java.lang.Object
   org.apache.jmeter.protocol.http.util.ConversionUtils
General purpose conversion utilities related to HTTP/HTML
Method from org.apache.jmeter.protocol.http.util.ConversionUtils Summary:
getEncodingFromContentType,   makeRelativeURL
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.protocol.http.util.ConversionUtils Detail:
 public static String getEncodingFromContentType(String contentType) 
    Extract the encoding (charset) from the Content-Type, e.g. "text/html; charset=utf-8".
 public static URL makeRelativeURL(URL baseURL,
    String location) throws MalformedURLException 
    Generate a relative URL, allowing for extraneous leading "../" segments. The Java URL#URL(URL, String) constructor does not remove these.