|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
WebServiceOperation.java | - | 0% | 0% | 0% |
|
1 | /** | |
2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
3 | * terms of the GNU General Public License as published by the Free Software | |
4 | * Foundation; either version 2, or (at your option) any later version. | |
5 | */ | |
6 | ||
7 | package jtr.config.ws; | |
8 | ||
9 | import java.io.Serializable; | |
10 | ||
11 | /** | |
12 | * This is the abstract representation of a webservice operation configuration element. | |
13 | * @author Francesco Russo (frusso@dev.java.net) | |
14 | * @version 4.0 | |
15 | * @since 3.0 | |
16 | */ | |
17 | public class WebServiceOperation implements Serializable { | |
18 | /** | |
19 | * Default constructor. | |
20 | * | |
21 | */ | |
22 | 0 | public WebServiceOperation() { |
23 | } | |
24 | ||
25 | /** | |
26 | * Get the operation name. | |
27 | * @return String | |
28 | */ | |
29 | 0 | public String getName() { |
30 | 0 | return name; |
31 | } | |
32 | ||
33 | /** | |
34 | * Get the input message. | |
35 | * @return WebServiceMsg | |
36 | */ | |
37 | 0 | public WebServiceMsg getInputMsg() { |
38 | 0 | return inputMsg; |
39 | } | |
40 | ||
41 | /** | |
42 | * Get the output message. | |
43 | * @return WebServiceMsg | |
44 | */ | |
45 | 0 | public WebServiceMsg getOuputMsg() { |
46 | 0 | return outputMsg; |
47 | } | |
48 | ||
49 | /** | |
50 | * Get the fault message. | |
51 | * @return WebServiceMsg | |
52 | */ | |
53 | 0 | public WebServiceMsg getFaultMsg() { |
54 | 0 | return faultMsg; |
55 | } | |
56 | ||
57 | /** | |
58 | * Set the operation name. | |
59 | * @param name The operation name | |
60 | */ | |
61 | 0 | public void setName(String name) { |
62 | 0 | this.name = name; |
63 | } | |
64 | ||
65 | /** | |
66 | * Set the input message providing the message name and its parts names. | |
67 | * @param inputMsgName The message name | |
68 | * @param partNames The parts names | |
69 | */ | |
70 | 0 | public void setInputMsg(String inputMsgName, String partNames) { |
71 | 0 | inputMsg = new WebServiceMsg(); |
72 | 0 | inputMsg.setName(inputMsgName); |
73 | 0 | inputMsg.setPartNames(partNames); |
74 | } | |
75 | ||
76 | /** | |
77 | * Set the output message providing the message name and its parts names. | |
78 | * @param outputMsgName The message name | |
79 | * @param partNames The parts names | |
80 | */ | |
81 | 0 | public void setOutputMsg(String outputMsgName, String partNames) { |
82 | 0 | outputMsg = new WebServiceMsg(); |
83 | 0 | outputMsg.setName(outputMsgName); |
84 | 0 | outputMsg.setPartNames(partNames); |
85 | } | |
86 | ||
87 | /** | |
88 | * Set the fault message providing the message name and its parts names. | |
89 | * @param faultMsgName The message name | |
90 | * @param partNames The parts names | |
91 | */ | |
92 | 0 | public void setFaultMsg(String faultMsgName, String partNames) { |
93 | 0 | faultMsg = new WebServiceMsg(); |
94 | 0 | faultMsg.setName(faultMsgName); |
95 | 0 | faultMsg.setPartNames(partNames); |
96 | } | |
97 | ||
98 | private String name; | |
99 | ||
100 | private WebServiceMsg inputMsg, outputMsg, faultMsg; | |
101 | } |
|