1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.impl.wsdl.panels.teststeps;
14
15 import javax.swing.JPanel;
16
17 import com.eviware.soapui.impl.EmptyPanelBuilder;
18 import com.eviware.soapui.impl.wsdl.WsdlRequest;
19 import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest;
20 import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep;
21 import com.eviware.soapui.support.components.JPropertiesTable;
22
23 /***
24 * PanelBuilder for WsdlTestRequest
25 *
26 * @author Ole.Matzura
27 */
28
29 public class WsdlTestRequestPanelBuilder extends EmptyPanelBuilder<WsdlTestRequestStep>
30 {
31 public WsdlTestRequestPanelBuilder()
32 {
33 }
34
35 public WsdlTestRequestDesktopPanel buildDesktopPanel(WsdlTestRequestStep testStep)
36 {
37 return new WsdlTestRequestDesktopPanel(testStep);
38 }
39
40 public boolean hasDesktopPanel()
41 {
42 return true;
43 }
44
45 public JPanel buildOverviewPanel(WsdlTestRequestStep testStep)
46 {
47 WsdlTestRequest request = testStep.getTestRequest();
48 JPropertiesTable<WsdlTestRequest> table = new JPropertiesTable<WsdlTestRequest>( "TestRequest Properties" );
49
50
51 table.addProperty( "Name", "name", true );
52 table.addProperty( "Description", "description", true );
53 table.addProperty( "Message Size", "contentLength", false );
54 table.addProperty( "Encoding", "encoding", new String[] {null, "UTF-8", "iso-8859-1" } );
55 table.addProperty( "Endpoint", "endpoint", request.getInterface().getEndpoints() );
56 table.addProperty( "Bind Address", "bindAddress", true );
57
58 table.addProperty( "Interface", "interfaceName" );
59 table.addProperty( "Operation", "operationName" );
60
61
62 table.addProperty( "Username", "username", true );
63 table.addProperty( "Password", "password", true );
64 table.addProperty( "Domain", "domain", true );
65 table.addProperty( "WSS-Password Type", "wssPasswordType",
66 new String[] {WsdlRequest.PW_TYPE_NONE, WsdlRequest.PW_TYPE_TEXT, WsdlRequest.PW_TYPE_DIGEST});
67 table.addProperty( "WSS TimeToLive", "wssTimeToLive", true );
68
69
70 table.addProperty( "Enable MTOM/Inline", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS );
71 table.addProperty( "Force MTOM", "forceMtom", JPropertiesTable.BOOLEAN_OPTIONS );
72 table.addProperty( "Inline Response Attachments", "inlineResponseAttachments",
73 JPropertiesTable.BOOLEAN_OPTIONS );
74 table.addProperty( "Expand MTOM Attachments", "expandMtomResponseAttachments",
75 JPropertiesTable.BOOLEAN_OPTIONS );
76 table.addProperty( "Disable multiparts", "multipartEnabled", JPropertiesTable.BOOLEAN_OPTIONS );
77 table.addProperty( "Encode Attachments", "encodeAttachments", JPropertiesTable.BOOLEAN_OPTIONS );
78
79
80 table.addProperty( "Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS );
81 table.addProperty( "Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS );
82
83 table.setPropertyObject( request );
84
85 return table;
86 }
87
88 public boolean hasOverviewPanel()
89 {
90 return true;
91 }
92 }