Added byte[] getter for the response content.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@888 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Simone Bordet 2009-09-12 13:48:02 +00:00
parent e4d4370c27
commit 31f1684464
1 changed files with 7 additions and 2 deletions

View File

@ -48,9 +48,14 @@ public class ContentExchange extends CachedExchange
public String getResponseContent() throws UnsupportedEncodingException
{
if (_responseContent != null)
{
return _responseContent.toString(_encoding);
}
return null;
}
public byte[] getResponseContentBytes()
{
if (_responseContent != null)
return _responseContent.toByteArray();
return null;
}