org.springframework.extensions.webscripts
Class TestWebScriptServer.MockHttpServletResponseResponse

java.lang.Object
  extended by 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


Constructor Summary
TestWebScriptServer.MockHttpServletResponseResponse(org.springframework.mock.web.MockHttpServletResponse res)
           
 
Method Summary
 byte[] getContentAsByteArray()
           
 String getContentAsString()
           
 int getContentLength()
           
 String getContentType()
           
 String getHeader(String name)
           
 int getStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestWebScriptServer.MockHttpServletResponseResponse

public TestWebScriptServer.MockHttpServletResponseResponse(org.springframework.mock.web.MockHttpServletResponse res)
Method Detail

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.