File: IF3SOAPImpl.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (138 lines) | stat: -rw-r--r-- 3,033 bytes parent folder | download | duplicates (10)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138

package test.rpc;

import java.util.Calendar;
import java.util.GregorianCalendar;

//import org.jdom.Document;
//import org.jdom.output.XMLOutputter;

public final class IF3SOAPImpl implements IF3SOAP
{
    private Bean[] m_beans;
    private String[] m_categories;

    public IF3SOAPImpl()
    {
        Bean bean1 = new Bean();
        bean1.setId("42042042042");
        bean1.setTitle("Test Bean");
        bean1.setCategory("Test");
        Calendar date = new GregorianCalendar();
        bean1.setDate(date);
        Bean bean2 = new Bean();
        bean2.setId("11011011011");
        bean2.setTitle("Test Bean 2");
        bean2.setCategory("Test 2");
        bean2.setDate(date);
        m_beans = new Bean[2];
        m_beans[0] = bean1;
        m_beans[1] = bean2;
        m_categories = new String[2];
        m_categories[0] = "Test";
        m_categories[1] = "Std";
    }

    public IF1 getBeanById(String id)
        throws Exception
    {
        return m_beans[0];
    }

    public IF1[] getAllBeans()
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getAllBeans(String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public String[] getAllCategories()
        throws Exception
    {
        return m_categories;
    }

    public IF1[] getBeansByCategory(String category)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByCategory(String category, String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByDate(Calendar[] dates)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByDate(Calendar[] dates, String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByExpression(int expType, String expression)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByExpression(int expType, String expression, String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public String getXMLForBean(IF1 bean)
        throws Exception
    {
        return "<bean>\n</bean>";
    }

    public IF1[] getBeansByCategory(String ifId, String category)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByCategory(String ifId, String category, String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByDate(String ifId, Calendar[] dates)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByDate(String ifId, Calendar[] dates, String[] filter)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByExpression(String ifId, int expType, String expression)
        throws Exception
    {
        return m_beans;
    }

    public IF1[] getBeansByExpression(String ifId, int expType, String expression, String[] filter)
        throws Exception
    {
        return m_beans;
    }
}