1
2
3
4
5
6
7
8
9
10
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 }