org.alfresco.repo.web.scripts
Class BaseWebScriptTest.HttpMethodResponse
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseWebScriptTest.HttpMethodResponse
public BaseWebScriptTest.HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method)
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.