01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * 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: public final static String REQUEST_PROPERTY = Request.class
25: .getName()
26: + "@request";
27: public final static String ENDPOINT_PROPERTY = Request.class
28: .getName()
29: + "@endpoint";
30: public final static String ENCODING_PROPERTY = Request.class
31: .getName()
32: + "@encoding";
33:
34: public String getRequestContent();
35:
36: public void setEndpoint(String string);
37:
38: public String getEndpoint();
39:
40: public String getEncoding();
41:
42: public void setEncoding(String string);
43:
44: public Operation getOperation();
45:
46: public void addSubmitListener(SubmitListener listener);
47:
48: public void removeSubmitListener(SubmitListener listener);
49:
50: public Submit submit(SubmitContext submitContext, boolean async)
51: throws SubmitException;
52:
53: public Attachment[] getAttachments();
54:
55: public MessagePart[] getRequestParts();
56:
57: public MessagePart[] getResponseParts();
58:
59: public static class SubmitException extends Exception {
60: public SubmitException(String msg) {
61: super (msg);
62: }
63:
64: public SubmitException(String message, Throwable cause) {
65: super (message, cause);
66: }
67:
68: public SubmitException(Throwable cause) {
69: super(cause);
70: }
71: }
72: }
|