View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
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  }