KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > jbws163 > HelloJavaBean


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.webservice.jbws163;
23
24 import org.jboss.logging.Logger;
25
26 import javax.xml.rpc.holders.BigIntegerHolder JavaDoc;
27 import javax.xml.rpc.holders.IntHolder JavaDoc;
28 import javax.xml.rpc.holders.LongHolder JavaDoc;
29 import javax.xml.rpc.holders.ShortHolder JavaDoc;
30 import java.math.BigInteger JavaDoc;
31
32 public class HelloJavaBean implements Hello
33 {
34    private Logger log = Logger.getLogger(HelloJavaBean.class);
35
36    public void nonPositiveInteger(BigInteger JavaDoc argIN, BigIntegerHolder JavaDoc argINOUT, BigIntegerHolder JavaDoc argOUT)
37    {
38       log.info("nonPositiveInteger: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
39       argINOUT.value = argIN;
40       argOUT.value = argIN;
41    }
42
43    public void negativeInteger(BigInteger JavaDoc argIN, BigIntegerHolder JavaDoc argINOUT, BigIntegerHolder JavaDoc argOUT)
44    {
45       log.info("negativeInteger: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
46       argINOUT.value = argIN;
47       argOUT.value = argIN;
48    }
49
50    public void nonNegativeInteger(BigInteger JavaDoc argIN, BigIntegerHolder JavaDoc argINOUT, BigIntegerHolder JavaDoc argOUT)
51    {
52       log.info("nonNegativeInteger: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
53       argINOUT.value = argIN;
54       argOUT.value = argIN;
55    }
56
57    public void unsignedLong(BigInteger JavaDoc argIN, BigIntegerHolder JavaDoc argINOUT, BigIntegerHolder JavaDoc argOUT)
58    {
59       log.info("unsignedLong: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
60       argINOUT.value = argIN;
61       argOUT.value = argIN;
62    }
63
64    public void positiveInteger(BigInteger JavaDoc argIN, BigIntegerHolder JavaDoc argINOUT, BigIntegerHolder JavaDoc argOUT)
65    {
66       log.info("positiveInteger: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
67       argINOUT.value = argIN;
68       argOUT.value = argIN;
69    }
70
71    public void unsignedInt(long argIN, LongHolder JavaDoc argINOUT, LongHolder JavaDoc argOUT)
72    {
73       log.info("unsignedInt: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
74       argINOUT.value = argIN;
75       argOUT.value = argIN;
76    }
77
78    public void unsignedShort(int argIN, IntHolder JavaDoc argINOUT, IntHolder JavaDoc argOUT)
79    {
80       log.info("unsignedShort: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
81       argINOUT.value = argIN;
82       argOUT.value = argIN;
83    }
84
85    public void unsignedByte(short argIN, ShortHolder JavaDoc argINOUT, ShortHolder JavaDoc argOUT)
86    {
87       log.info("unsignedByte: [argIn=" + argIN + ",argINOUT=" + argINOUT.value + ",argOUT=" + argOUT.value + "]");
88       argINOUT.value = argIN;
89       argOUT.value = argIN;
90    }
91 }
92
Popular Tags