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:
parent
e4d4370c27
commit
31f1684464
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue