1WebCommon.incomingValue(3kaya)Kaya module referencWeebCommon.incomingValue(3kaya)
2
3
4

NAME

6       WebCommon::incomingValue  -  Returns  the first value for the specified
7       key from user-supplied data
8

SYNOPSIS

10       String incomingValue( String key, DataSource ds )
11

ARGUMENTS

13       key The key to retrieve data for
14
15       ds The source for user-supplied data
16

DESCRIPTION

18       Returns the first value for the key from the specified data source,  or
19       throws a WebCommon.NotIncoming (3kaya) Exception if no such key exists.
20
21
22    // GET /example.cgi?a=1;b=3;b=5;z=;z;z
23    val = incomingData("a",DataGet);
24    // val = "1"
25    val = incomingData("b",DataGet);
26    // val = "3"
27    val = incomingData("c",DataGet);
28    // NotIncoming exception thrown
29    val = incomingData("z",DataGet);
30    // val = ""
31
32       This  is generally easier to use than WebCommon.incomingData (3kaya) if
33       only one value is expected for that key.
34

AUTHORS

36       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
37       (kaya@kayalang.org). For further information see http://kayalang.org/
38

LICENSE

40       The  Kaya  standard  library  is free software; you can redistribute it
41       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
42       License  (version  2.1  or  any later version) as published by the Free
43       Software Foundation.
44
46       WebCommon.DataSource (3kaya)
47       WebCommon.incomingData (3kaya)
48       WebCommon.incomingExists (3kaya)
49       WebCommon.incomingKeys (3kaya)
50
51
52
53Kaya                             December 2010  WebCommon.incomingValue(3kaya)
Impressum