org.springframework.extensions.webscripts
Class TestWebScriptServer.MockHttpServletResponseResponse
java.lang.Object
org.springframework.extensions.webscripts.TestWebScriptServer.MockHttpServletResponseResponse
- All Implemented Interfaces:
- TestWebScriptServer.Response
- Enclosing class:
- TestWebScriptServer
public static class TestWebScriptServer.MockHttpServletResponseResponse
- extends Object
- implements TestWebScriptServer.Response
Test Response wrapping a MockHttpServletResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestWebScriptServer.MockHttpServletResponseResponse
public TestWebScriptServer.MockHttpServletResponseResponse(org.springframework.mock.web.MockHttpServletResponse res)
getContentAsByteArray
public byte[] getContentAsByteArray()
- Specified by:
getContentAsByteArray
in interface TestWebScriptServer.Response
getContentAsString
public String getContentAsString()
throws UnsupportedEncodingException
- Specified by:
getContentAsString
in interface TestWebScriptServer.Response
- Throws:
UnsupportedEncodingException
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interface TestWebScriptServer.Response
getContentType
public String getContentType()
- Specified by:
getContentType
in interface TestWebScriptServer.Response
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interface TestWebScriptServer.Response
getStatus
public int getStatus()
- Specified by:
getStatus
in interface TestWebScriptServer.Response
Copyright © 2009 SpringSource, Inc. All Rights Reserved.