1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.impl.wsdl.support;
14
15 import com.eviware.soapui.impl.wsdl.panels.teststeps.JdbcResponse;
16 import com.eviware.soapui.impl.wsdl.teststeps.JdbcRequestTestStep;
17
18 /***
19 *
20 * @author ole.matzura
21 */
22
23 public class JdbcMessageExchange extends AbstractNonHttpMessageExchange<JdbcRequestTestStep>
24 {
25 private final JdbcResponse response;
26
27 public JdbcMessageExchange( JdbcRequestTestStep modelItem, JdbcResponse response )
28 {
29 super( modelItem );
30 this.response = response;
31 }
32
33 public String getRequestContent()
34 {
35 return response.getRequestContent();
36 }
37
38 public String getResponseContent()
39 {
40 return response.getContentAsString();
41 }
42
43 public long getTimeTaken()
44 {
45 return response.getTimeTaken();
46 }
47
48 public long getTimestamp()
49 {
50 return response.getTimestamp();
51 }
52
53 public boolean hasRequest( boolean ignoreEmpty )
54 {
55 return true;
56 }
57
58 public boolean hasResponse()
59 {
60 return getResponseContent()!= null ;
61 }
62
63 public boolean isDiscarded()
64 {
65 return false;
66 }
67
68 public String getEndpoint()
69 {
70
71 return null;
72 }
73 }