View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2008 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 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 static class SubmitException extends Exception
54  	{
55     	public SubmitException( String msg )
56     	{
57     		super( msg );
58     	}
59  
60  		public SubmitException(String message, Throwable cause)
61  		{
62  			super(message, cause);
63  		}
64  
65  		public SubmitException(Throwable cause)
66  		{
67  			super(cause);
68  		}
69  	}
70  }