com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods
Class ExtendedHeadMethod

java.lang.Object
  extended by org.apache.commons.httpclient.HttpMethodBase
      extended by org.apache.commons.httpclient.methods.HeadMethod
          extended by com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedHeadMethod
All Implemented Interfaces:
ExtendedHttpMethod, org.apache.commons.httpclient.HttpMethod

public final class ExtendedHeadMethod
extends org.apache.commons.httpclient.methods.HeadMethod
implements ExtendedHttpMethod

Extended PostMethod that supports limiting of response size and detailed timestamps

Author:
Ole.Matzura

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
effectiveVersion, statusLine
 
Constructor Summary
ExtendedHeadMethod()
           
 
Method Summary
 java.lang.String getDumpFile()
           
 java.lang.Throwable getFailureCause()
           
 long getMaxSize()
           
 RestRequestInterface.RequestMethod getMethod()
           
 org.apache.commons.httpclient.methods.RequestEntity getRequestEntity()
           
 byte[] getResponseBody()
           
 java.lang.String getResponseCharSet()
           
 java.lang.String getResponseContentType()
           
 long getResponseReadTime()
           
 SSLInfo getSSLInfo()
           
 long getStartTime()
           
 long getTimeTaken()
           
 boolean hasResponse()
           
 void initStartTime()
           
 boolean isFailed()
           
protected  void readResponse(org.apache.commons.httpclient.HttpState arg0, org.apache.commons.httpclient.HttpConnection arg1)
           
 void setDumpFile(java.lang.String dumpFile)
           
 void setFailed(java.lang.Throwable t)
           
 void setMaxSize(long maxSize)
           
protected  void writeRequest(org.apache.commons.httpclient.HttpState arg0, org.apache.commons.httpclient.HttpConnection arg1)
           
 
Methods inherited from class org.apache.commons.httpclient.methods.HeadMethod
getBodyCheckTimeout, getName, readResponseBody, recycle, setBodyCheckTimeout
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addRequestHeaders, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getEffectiveVersion, getFollowRedirects, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processCookieHeaders, processResponseBody, processResponseHeaders, processStatusLine, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequestBody, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.httpclient.HttpMethod
abort, addRequestHeader, addRequestHeader, addResponseFooter, execute, getDoAuthentication, getFollowRedirects, getHostAuthState, getHostConfiguration, getName, getParams, getPath, getProxyAuthState, getQueryString, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBodyAsStream, getResponseBodyAsString, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isRequestSent, isStrictMode, recycle, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setFollowRedirects, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validate
 

Constructor Detail

ExtendedHeadMethod

public ExtendedHeadMethod()
Method Detail

getDumpFile

public java.lang.String getDumpFile()

setDumpFile

public void setDumpFile(java.lang.String dumpFile)
Specified by:
setDumpFile in interface ExtendedHttpMethod

hasResponse

public boolean hasResponse()
Specified by:
hasResponse in interface ExtendedHttpMethod

readResponse

protected void readResponse(org.apache.commons.httpclient.HttpState arg0,
                            org.apache.commons.httpclient.HttpConnection arg1)
                     throws java.io.IOException,
                            org.apache.commons.httpclient.HttpException
Overrides:
readResponse in class org.apache.commons.httpclient.HttpMethodBase
Throws:
java.io.IOException
org.apache.commons.httpclient.HttpException

getResponseCharSet

public java.lang.String getResponseCharSet()
Specified by:
getResponseCharSet in interface ExtendedHttpMethod
Overrides:
getResponseCharSet in class org.apache.commons.httpclient.HttpMethodBase

getMaxSize

public long getMaxSize()
Specified by:
getMaxSize in interface ExtendedHttpMethod

setMaxSize

public void setMaxSize(long maxSize)
Specified by:
setMaxSize in interface ExtendedHttpMethod

getResponseReadTime

public long getResponseReadTime()
Specified by:
getResponseReadTime in interface ExtendedHttpMethod

writeRequest

protected void writeRequest(org.apache.commons.httpclient.HttpState arg0,
                            org.apache.commons.httpclient.HttpConnection arg1)
                     throws java.io.IOException,
                            org.apache.commons.httpclient.HttpException
Overrides:
writeRequest in class org.apache.commons.httpclient.HttpMethodBase
Throws:
java.io.IOException
org.apache.commons.httpclient.HttpException

initStartTime

public void initStartTime()
Specified by:
initStartTime in interface ExtendedHttpMethod

getTimeTaken

public long getTimeTaken()
Specified by:
getTimeTaken in interface ExtendedHttpMethod

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface ExtendedHttpMethod

getResponseBody

public byte[] getResponseBody()
                       throws java.io.IOException
Specified by:
getResponseBody in interface org.apache.commons.httpclient.HttpMethod
Overrides:
getResponseBody in class org.apache.commons.httpclient.HttpMethodBase
Throws:
java.io.IOException

getSSLInfo

public SSLInfo getSSLInfo()
Specified by:
getSSLInfo in interface ExtendedHttpMethod

getResponseContentType

public java.lang.String getResponseContentType()
Specified by:
getResponseContentType in interface ExtendedHttpMethod

getRequestEntity

public org.apache.commons.httpclient.methods.RequestEntity getRequestEntity()
Specified by:
getRequestEntity in interface ExtendedHttpMethod

getMethod

public RestRequestInterface.RequestMethod getMethod()
Specified by:
getMethod in interface ExtendedHttpMethod

getFailureCause

public java.lang.Throwable getFailureCause()
Specified by:
getFailureCause in interface ExtendedHttpMethod

isFailed

public boolean isFailed()
Specified by:
isFailed in interface ExtendedHttpMethod

setFailed

public void setFailed(java.lang.Throwable t)
Specified by:
setFailed in interface ExtendedHttpMethod


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