org.alfresco.httpclient
Class HttpMethodResponse

java.lang.Object
  extended by org.alfresco.httpclient.HttpMethodResponse
All Implemented Interfaces:
Response

public class HttpMethodResponse
extends java.lang.Object
implements Response

Since:
4.0

Field Summary
protected  org.apache.commons.httpclient.HttpMethod method
           
 
Constructor Summary
HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method)
           
 
Method Summary
 java.io.InputStream getContentAsStream()
           
 java.lang.String getContentType()
           
 java.lang.String getHeader(java.lang.String name)
           
 int getStatus()
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected org.apache.commons.httpclient.HttpMethod method
Constructor Detail

HttpMethodResponse

public HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

release

public void release()
Specified by:
release in interface Response

getContentAsStream

public java.io.InputStream getContentAsStream()
                                       throws java.io.IOException
Specified by:
getContentAsStream in interface Response
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Response

getHeader

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

getStatus

public int getStatus()
Specified by:
getStatus in interface Response


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