|
Test webapp | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.webapp.services.SimpleJava
public class SimpleJava
Very simple web service written in the "old java model", i.e. using just one Java Class to offer the service (a Plain Old Java Object).
Constructor Summary | |
---|---|
SimpleJava()
|
Method Summary | |
---|---|
int |
getValue(java.lang.String key)
Return the value specified by the input key. |
void |
setValue(java.lang.String key,
int value)
Insert a new value in the inner HashMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleJava()
Method Detail |
---|
public int getValue(java.lang.String key)
getValue
:<xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
/getvalue?param0=foo
.
For the same reason, a SOAP call must specify an input XML element named <param0>.
key
- the input key (as a String)
public void setValue(java.lang.String key, int value)
getValue method.
- Parameters:
key
- the input key (as a String)value
- the input value (as an integer)
|
Build 10/01/2013 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |