blob: be3cbbb97c76526aa7c17423ef43387e4dd5fb23 [file] [log] [blame]
jefff1ba4b72012-09-03 15:20:01 -07001<?xml version = "1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3"DTD/xhtml1-strict.dtd">
4<html xmlns = "http://www.w3.org/1999/xhtml">
5
6<head>
7 <title>NDN Get</title>
8 <script type="text/javascript" src="../java_socket_bridge.js"></script>
9
Jeff Thompsone06b31e2012-09-30 17:19:19 -070010 <script type="text/javascript" src="../NDN.js"></script>
11
jefff1ba4b72012-09-03 15:20:01 -070012 <script type="text/javascript" src="../CCNProtocolDTags.js"></script>
13
14 <script type="text/javascript" src="../CCNTime.js"></script>
15
Jeff Thompsonf3bd3592012-09-29 23:25:30 -070016 <script type="text/javascript" src="../Name.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070017
18 <script type="text/javascript" src="../ContentObject.js"></script>
19
20 <script type="text/javascript" src="../DateFormat.js"></script>
21
jefff1ba4b72012-09-03 15:20:01 -070022 <script type="text/javascript" src="../Interest.js"></script>
23
24 <script type="text/javascript" src="../KeyLocator.js"></script>
25
jefff1ba4b72012-09-03 15:20:01 -070026 <script type="text/javascript" src="../PublisherID.js"></script>
27
jefff1ba4b72012-09-03 15:20:01 -070028 <script type="text/javascript" src="../PublisherPublicKeyDigest.js"></script>
29
30 <script type="text/javascript" src="../FaceInstance.js"></script>
31
32 <script type="text/javascript" src="../ForwardingEntry.js"></script>
33
34
35 <script type="text/javascript" src="../encoding/BinaryXMLEncoder.js"></script>
36
37 <script type="text/javascript" src="../encoding/BinaryXMLCodec.js"></script>
38
39 <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
40
41 <script type="text/javascript" src="../encoding/DataUtils.js"></script>
42
43 <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070044
jefff1ba4b72012-09-03 15:20:01 -070045 <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
46
47 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
48 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
49 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
50 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
51
52 <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
53 <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
54 <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
55 <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
56 <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
57 <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
58
59 <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
60 <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
61 <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
62 <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
63
64 <script type="text/javascript">
65
66 function getAction(){
Jeff Thompsone06b31e2012-09-30 17:19:19 -070067 var connector = new NDN();
68 var co = connector.get(document.getElementById('interest').value);
jefff1ba4b72012-09-03 15:20:01 -070069
Jeff Thompsone06b31e2012-09-30 17:19:19 -070070 var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
jefff1ba4b72012-09-03 15:20:01 -070071
72 document.getElementById('result').innerHTML = output;
73 }
74
75 </script>
76
77</head>
78<body >
79
80 <form>
81 Please Enter an Interest:<br />
Jeff Thompsone06b31e2012-09-30 17:19:19 -070082 <input id="interest" type="text" name="INTEREST" size="50" value="/" />
jefff1ba4b72012-09-03 15:20:01 -070083 </form>
84
85 <button onclick="getAction()">GET!</button>
86
87 <div >
88 <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
89 </applet>
90 </div>
91
92 <p id="result"></p>
93
94</body>
95</html>