1 | void removeHTTPFileArg(HTTPFileArg file) {↵ | | 1 | void removeArgument(Argument arg) {↵
|
2 | PropertyIterator iter = getHTTPFileArgsCollection().iterator();↵ | | 2 | PropertyIterator iter = getArguments().iterator();↵
|
3 | while (iter.hasNext()) {↵ | | 3 | while (iter.hasNext()) {↵
|
4 | HTTPFileArg item = (HTTPFileArg) iter.next().getObjectValue();↵ | | 4 | Argument item = (Argument) iter.next().getObjectValue();↵
|
5 | if (file.equals(item)) {↵ | | 5 | if (arg.equals(item)) {↵
|
6 | iter.remove();↵ | | 6 | iter.remove();↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
|
10 | /**↵ | | 10 | /**↵
|
11 | * Remove the file with the specified path.↵ | | 11 | * Remove the argument with the specified name.↵
|
12 | *↵ | | 12 | * ↵
|
13 | * @param filePath↵ | | 13 | * @param ↵
|
14 | * the path of the file↵ | | 14 | argName↵
|
15 | to remove↵ | | 15 | * the name of the argument to remove↵
|
16 | */↵ | | 16 | */↵
|
17 | public void removeHTTPFileArg(String filePath) {↵ | | 17 | public void removeArgument(String argName) {↵
|
18 | PropertyIterator iter = getHTTPFileArgsCollection().iterator();↵ | | 18 | PropertyIterator iter = getArguments().iterator();↵
|
19 | while (iter.hasNext()) {↵ | | 19 | while (iter.hasNext()) {↵
|
20 | HTTPFileArg file = (HTTPFileArg) iter.next().getObjectValue();↵ | | 20 | Argument arg = (Argument) iter.next().getObjectValue();↵
|
21 | if (file.getPath().equals(filePath)) {↵ | | 21 | if (arg.getName().equals(argName)) {↵
|
22 | iter.remove();↵ | | 22 | iter.remove();↵
|
23 | }↵ | | 23 | }↵
|
24 | }↵ | | 24 | }↵
|
25 | }↵ | | 25 | }↵
|
|
26 | /**↵ | | 26 | /**↵
|
27 | * Remove all files from the list.↵ | | 27 | * Remove all arguments from the list.↵
|
28 | */↵ | | 28 | */↵
|
29 | public void removeAllHTTPFileArgs() {↵ | | 29 | public void removeAllArguments() {↵
|
30 | getHTTPFileArgsCollection().clear();↵ | | 30 | getArguments().clear();↵
|
31 | | | 31 |
|