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