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 java.lang.Object
implements TestWebScriptServer.Response

Test Response wrapping a MockHttpServletResponse


Constructor Summary
TestWebScriptServer.MockHttpServletResponseResponse(org.springframework.mock.web.MockHttpServletResponse res)
           
 
Method Summary
 byte[] getContentAsByteArray()
           
 java.lang.String getContentAsString()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getHeader(java.lang.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 java.lang.String getContentAsString()
                                    throws java.io.UnsupportedEncodingException
Specified by:
getContentAsString in interface TestWebScriptServer.Response
Throws:
java.io.UnsupportedEncodingException

getHeader

public java.lang.String getHeader(java.lang.String name)
Specified by:
getHeader in interface TestWebScriptServer.Response

getContentType

public java.lang.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-2011 SpringSource, Inc. All Rights Reserved.