View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.impl.wsdl.submit.transports.http;
14  
15  import java.io.IOException;
16  
17  import org.apache.commons.httpclient.HttpMethod;
18  import org.apache.commons.httpclient.methods.RequestEntity;
19  
20  import com.eviware.soapui.impl.rest.RestRequestInterface;
21  
22  public interface ExtendedHttpMethod extends HttpMethod
23  {
24  	public long getMaxSize();
25  
26  	public void setMaxSize( long maxSize );
27  
28  	public long getResponseReadTime();
29  
30  	public void initStartTime();
31  
32  	public long getTimeTaken();
33  
34  	public long getStartTime();
35  
36  	public SSLInfo getSSLInfo();
37  
38  	public String getResponseCharSet();
39  
40  	public String getResponseContentType();
41  
42  	public RequestEntity getRequestEntity();
43  
44  	public void setDumpFile( String dumpFile );
45  
46  	public RestRequestInterface.RequestMethod getMethod();
47  
48  	public void setFailed( Throwable t );
49  
50  	public boolean isFailed();
51  
52  	public Throwable getFailureCause();
53  
54  	public boolean hasResponse();
55  
56  	public byte[] getDecompressedResponseBody() throws IOException;
57  
58  	public void setDecompress( boolean decompress );
59  }