blob: f72033baacff558f4c738ac07b26cd46307f8015 (
plain) (
blame)
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
|
package nginx.unit;
import javax.servlet.descriptor.TaglibDescriptor;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class Taglib implements TaglibDescriptor
{
private String uri_ = null;
private String location_ = null;
public Taglib(NodeList nodes)
{
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
String tag_name = node.getNodeName();
if (tag_name.equals("taglib-uri")) {
uri_ = node.getTextContent().trim();
continue;
}
if (tag_name.equals("taglib-location")) {
location_ = node.getTextContent().trim();
continue;
}
}
}
@Override
public String getTaglibURI()
{
return uri_;
}
@Override
public String getTaglibLocation()
{
return location_;
}
}
|