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

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

public final class ExtendedPutMethod
extends org.apache.commons.httpclient.methods.PutMethod
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.methods.EntityEnclosingMethod
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
effectiveVersion, statusLine
 
Constructor Summary
ExtendedPutMethod()
           
 
Method Summary
 java.lang.String getDumpFile()
           
 long getMaxSize()
           
 AbstractHttpRequest.RequestMethod getMethod()
           
 byte[] getResponseBody()
           
 java.lang.String getResponseContentType()
           
 long getResponseReadTime()
           
 SSLInfo getSSLInfo()
           
 long getStartTime()
           
 long getTimeTaken()
           
 void initStartTime()
           
protected  void readResponse(org.apache.commons.httpclient.HttpState arg0, org.apache.commons.httpclient.HttpConnection arg1)
           
 void setDumpFile(java.lang.String dumpFile)
           
 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.PutMethod
getName
 
Methods inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod
addContentLengthRequestHeader, addRequestHeaders, clearRequestBody, generateRequestBody, generateRequestEntity, getFollowRedirects, getRequestCharSet, getRequestContentLength, getRequestEntity, hasRequestContent, recycle, setContentChunked, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, setRequestContentLength, setRequestEntity, writeRequestBody
 
Methods inherited from class org.apache.commons.httpclient.methods.ExpectContinueMethod
getUseExpectHeader, setUseExpectHeader
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getEffectiveVersion, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processCookieHeaders, processResponseBody, processResponseHeaders, processStatusLine, readResponseBody, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.submit.transports.http.ExtendedHttpMethod
getRequestEntity, getResponseCharSet
 
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

ExtendedPutMethod

public ExtendedPutMethod()
Method Detail

getDumpFile

public java.lang.String getDumpFile()

setDumpFile

public void setDumpFile(java.lang.String dumpFile)
Specified by:
setDumpFile 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

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

getMethod

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


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