blob: eb7017d94c8c78037e7908af625128b2d597844b [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
Jeff Thompsonc3164722012-09-30 18:35:02 -070012 <script type="text/javascript" src="../util/CCNProtocolDTags.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070013
Jeff Thompsonc3164722012-09-30 18:35:02 -070014 <script type="text/javascript" src="../util/CCNTime.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070015
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
Jeff Thompsonc3164722012-09-30 18:35:02 -070020 <script type="text/javascript" src="../encoding/DateFormat.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070021
jefff1ba4b72012-09-03 15:20:01 -070022 <script type="text/javascript" src="../Interest.js"></script>
23
Jeff Thompsonc3164722012-09-30 18:35:02 -070024 <script type="text/javascript" src="../Key.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070025
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
jefff1ba4b72012-09-03 15:20:01 -070037 <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
38
39 <script type="text/javascript" src="../encoding/DataUtils.js"></script>
40
41 <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070042
jefff1ba4b72012-09-03 15:20:01 -070043 <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
44
45 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
46 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
47 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
48 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
49
50 <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
51 <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
52 <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
53 <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
54 <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
55 <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
56
57 <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
58 <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
59 <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
60 <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
61
62 <script type="text/javascript">
63
64 function getAction(){
Jeff Thompsone06b31e2012-09-30 17:19:19 -070065 var connector = new NDN();
66 var co = connector.get(document.getElementById('interest').value);
jefff1ba4b72012-09-03 15:20:01 -070067
Jeff Thompsone06b31e2012-09-30 17:19:19 -070068 var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
jefff1ba4b72012-09-03 15:20:01 -070069
70 document.getElementById('result').innerHTML = output;
71 }
72
73 </script>
74
75</head>
76<body >
77
78 <form>
79 Please Enter an Interest:<br />
Jeff Thompsone06b31e2012-09-30 17:19:19 -070080 <input id="interest" type="text" name="INTEREST" size="50" value="/" />
jefff1ba4b72012-09-03 15:20:01 -070081 </form>
82
83 <button onclick="getAction()">GET!</button>
84
85 <div >
86 <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
87 </applet>
88 </div>
89
90 <p id="result"></p>
91
92</body>
93</html>