public class WebResponseUtil extends Object
Constructor and Description |
---|
WebResponseUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
replaceResponseContentType(com.meterware.httpunit.WebResponse webResponse,
String contentType)
This method takes a given webResponse and replaces the content type with the one supplied.
|
public static boolean replaceResponseContentType(com.meterware.httpunit.WebResponse webResponse, String contentType)
This needs to be in teh com.meterware.httpunit package, since the replaceText method() only has package level access.
webResponse
- The webResponse object returned by the request.contentType
- The new content type.Copyright © 2002-2016 Atlassian. All Rights Reserved.