com.eviware.soapui.impl.wsdl.submit.transports.http
Class HttpMethodSupport

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.submit.transports.http.HttpMethodSupport

public final class HttpMethodSupport
extends java.lang.Object

Extended PostMethod that supports limiting of response size and detailed timestamps

Author:
Ole.Matzura

Constructor Summary
HttpMethodSupport(org.apache.commons.httpclient.HttpMethodBase httpMethod)
           
 
Method Summary
 void afterReadResponse(org.apache.commons.httpclient.HttpState arg0, org.apache.commons.httpclient.HttpConnection arg1)
           
 void afterWriteRequest(org.apache.commons.httpclient.HttpState arg0, org.apache.commons.httpclient.HttpConnection arg1)
           
 java.lang.String getDumpFile()
           
 java.lang.Throwable getFailureCause()
           
 long getMaxSize()
           
 byte[] getResponseBody()
           
 java.lang.String getResponseCharset()
          Handles charset specified in Content-Encoding headers
 java.lang.String getResponseContentType()
           
 long getResponseReadTime()
           
 SSLInfo getSSLInfo()
           
 long getStartTime()
           
 long getTimeTaken()
           
 boolean hasResponse()
           
 void initStartTime()
           
 boolean isFailed()
           
 void setDumpFile(java.lang.String dumpFile)
           
 void setFailed(java.lang.Throwable t)
           
 void setMaxSize(long maxSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMethodSupport

public HttpMethodSupport(org.apache.commons.httpclient.HttpMethodBase httpMethod)
Method Detail

getDumpFile

public java.lang.String getDumpFile()

setDumpFile

public void setDumpFile(java.lang.String dumpFile)

afterReadResponse

public void afterReadResponse(org.apache.commons.httpclient.HttpState arg0,
                              org.apache.commons.httpclient.HttpConnection arg1)

getMaxSize

public long getMaxSize()

setMaxSize

public void setMaxSize(long maxSize)

afterWriteRequest

public void afterWriteRequest(org.apache.commons.httpclient.HttpState arg0,
                              org.apache.commons.httpclient.HttpConnection arg1)

initStartTime

public void initStartTime()

getTimeTaken

public long getTimeTaken()

getStartTime

public long getStartTime()

getResponseBody

public byte[] getResponseBody()
                       throws java.io.IOException
Throws:
java.io.IOException

getSSLInfo

public SSLInfo getSSLInfo()

getResponseContentType

public java.lang.String getResponseContentType()

getResponseReadTime

public long getResponseReadTime()

getResponseCharset

public java.lang.String getResponseCharset()
Handles charset specified in Content-Encoding headers

Returns:

getFailureCause

public java.lang.Throwable getFailureCause()

isFailed

public boolean isFailed()

setFailed

public void setFailed(java.lang.Throwable t)

hasResponse

public boolean hasResponse()


Copyright © 2005-2009 eviware.com. All Rights Reserved.