View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 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.model.iface;
14  
15  import java.util.Vector;
16  
17  import com.eviware.soapui.model.ModelItem;
18  import com.eviware.soapui.model.testsuite.ResultContainer;
19  import com.eviware.soapui.support.types.StringToStringMap;
20  
21  /***
22   * An exchange of a request and response message
23   * 
24   * @author ole.matzura
25   */
26  
27  public interface MessageExchange extends ResultContainer
28  {
29     public Operation getOperation();
30     
31     public ModelItem getModelItem();
32  
33  	public long getTimestamp();
34  	
35  	public long getTimeTaken();
36  	
37  	public StringToStringMap getProperties();
38  	
39     public String getRequestContent();
40     
41     public String getResponseContent();
42     
43     public StringToStringMap getRequestHeaders();
44     
45     public StringToStringMap getResponseHeaders();
46     
47     public Attachment [] getRequestAttachments();
48     
49     public Attachment [] getResponseAttachments();
50     
51     public String [] getMessages();
52     
53     public boolean isDiscarded();
54  
55     public boolean hasRawData();
56     
57     public byte[] getRawRequestData();
58  	
59  	public byte[] getRawResponseData();
60  	
61  	public Attachment [] getRequestAttachmentsForPart( String partName );
62  
63  	public Attachment [] getResponseAttachmentsForPart( String partName );
64  
65  	public boolean hasRequest( boolean ignoreEmpty );
66  
67  	public boolean hasResponse();
68  	
69  	public Vector getRequestWssResult();
70  	
71  	public Vector getResponseWssResult();
72  }