org.alfresco.repo.web.scripts
Class BaseWebScriptTest.HttpMethodResponse

java.lang.Object
  extended by org.alfresco.repo.web.scripts.BaseWebScriptTest.HttpMethodResponse
All Implemented Interfaces:
org.springframework.extensions.webscripts.TestWebScriptServer.Response
Enclosing class:
BaseWebScriptTest

public static class BaseWebScriptTest.HttpMethodResponse
extends java.lang.Object
implements org.springframework.extensions.webscripts.TestWebScriptServer.Response

HttpMethod wrapped as Web Script Test Response


Constructor Summary
BaseWebScriptTest.HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method)
           
 
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

BaseWebScriptTest.HttpMethodResponse

public BaseWebScriptTest.HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method)
Method Detail

getContentAsByteArray

public byte[] getContentAsByteArray()
Specified by:
getContentAsByteArray in interface org.springframework.extensions.webscripts.TestWebScriptServer.Response

getContentAsString

public java.lang.String getContentAsString()
                                    throws java.io.UnsupportedEncodingException
Specified by:
getContentAsString in interface org.springframework.extensions.webscripts.TestWebScriptServer.Response
Throws:
java.io.UnsupportedEncodingException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface org.springframework.extensions.webscripts.TestWebScriptServer.Response

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface org.springframework.extensions.webscripts.TestWebScriptServer.Response

getHeader

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

getStatus

public int getStatus()
Specified by:
getStatus in interface org.springframework.extensions.webscripts.TestWebScriptServer.Response


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.