-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOutsourcerControl.java
More file actions
47 lines (43 loc) · 894 Bytes
/
OutsourcerControl.java
File metadata and controls
47 lines (43 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import java.util.Map;
public class OutsourcerControl
{
public static String buildPage(String uri, Map<String, String> parms)
{
String msg = "";
if (uri.equals("/"))
//Build navigation page
{
msg += OutsourcerView.viewMain();
}
else if (uri.equals("/queue"))
{
msg += QueueControl.buildPage(parms);
}
else if (uri.equals("/jobs"))
{
msg += JobControl.buildPage(parms);
}
else if (uri.equals("/environment"))
{
msg += EnvironmentControl.buildPage(parms);
}
else if (uri.equals("/external"))
{
msg += ExternalTableControl.buildPage(parms);
}
else if (uri.equals("/schedule"))
{
msg += ScheduleControl.buildPage(parms);
}
else if (uri.equals("/custom"))
{
msg += CustomSQLControl.buildPage(parms);
}
else
{
msg += OutsourcerView.viewPageNotFound();
}
msg += OutsourcerView.viewFooter();
return msg;
}
}