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
17 /***
18 * Request interface
19 *
20 * @author Ole.Matzura
21 */
22
23 public interface Request extends ModelItem
24 {
25 public final static String REQUEST_PROPERTY = "request";
26 public final static String ENDPOINT_PROPERTY = "endpoint";
27 public final static String ENCODING_PROPERTY = "encoding";
28
29 public String getRequestContent();
30
31 public void setEndpoint( String string );
32
33 public String getEndpoint();
34
35 public String getEncoding();
36
37 public void setEncoding( String string );
38
39 public Operation getOperation();
40
41 public void addSubmitListener( SubmitListener listener );
42
43 public void removeSubmitListener( SubmitListener listener );
44
45 public Submit submit( SubmitContext submitContext, boolean async ) throws SubmitException;
46
47 public Attachment[] getAttachments();
48
49 public MessagePart[] getRequestParts();
50
51 public MessagePart[] getResponseParts();
52
53 public boolean dependsOn( ModelItem modelItem );
54
55 public void notifyPropertyChanged( String name, Object oldValue, Object newValue );
56
57 public void notifyPropertyChanged( String name, int oldValue, int newValue );
58
59 public void notifyPropertyChanged( String name, boolean oldValue, boolean newValue );
60
61 public void fireIndexedPropertyChange( String propertyName, int index, boolean oldValue, boolean newValue );
62
63 public void fireIndexedPropertyChange( String propertyName, int index, int oldValue, int newValue );
64
65 public void fireIndexedPropertyChange( String propertyName, int index, Object oldValue, Object newValue );
66
67 public static class SubmitException extends Exception
68 {
69 public SubmitException( String msg )
70 {
71 super( msg );
72 }
73
74 public SubmitException( String message, Throwable cause )
75 {
76 super( message, cause );
77 }
78
79 public SubmitException( Throwable cause )
80 {
81 super( cause );
82 }
83 }
84 }