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 String getTimeout();
38
39 public void setEncoding( String string );
40
41 public Operation getOperation();
42
43 public void addSubmitListener( SubmitListener listener );
44
45 public void removeSubmitListener( SubmitListener listener );
46
47 public Submit submit( SubmitContext submitContext, boolean async ) throws SubmitException;
48
49 public Attachment[] getAttachments();
50
51 public MessagePart[] getRequestParts();
52
53 public MessagePart[] getResponseParts();
54
55 public String getUsername();
56
57 public String getPassword();
58
59 public boolean dependsOn( ModelItem modelItem );
60
61 @SuppressWarnings( "serial" )
62 public static class SubmitException extends Exception
63 {
64 public SubmitException( String msg )
65 {
66 super( msg );
67 }
68
69 public SubmitException( String message, Throwable cause )
70 {
71 super( message, cause );
72 }
73
74 public SubmitException( Throwable cause )
75 {
76 super( cause );
77 }
78 }
79 }