java.lang.Object | |
↳ | com.meterware.httpunit.WebResponseUtil |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method takes a given webResponse and replaces the content type with the one supplied.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
This method takes a given webResponse and replaces the content type with the one supplied. This is useful for writing func tests that look at Excel or Word HTML which do not have the 'text/html' content type. HTTPUnit can only deal with 'text/html' content types.
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. |