jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 1 | <?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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 10 | <script type="text/javascript" src="../NDN.js"></script>
|
| 11 |
|
Jeff Thompson | c316472 | 2012-09-30 18:35:02 -0700 | [diff] [blame] | 12 | <script type="text/javascript" src="../util/CCNProtocolDTags.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 13 |
|
Jeff Thompson | c316472 | 2012-09-30 18:35:02 -0700 | [diff] [blame] | 14 | <script type="text/javascript" src="../util/CCNTime.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 15 |
|
Jeff Thompson | f3bd359 | 2012-09-29 23:25:30 -0700 | [diff] [blame] | 16 | <script type="text/javascript" src="../Name.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 17 |
|
| 18 | <script type="text/javascript" src="../ContentObject.js"></script>
|
| 19 |
|
Jeff Thompson | c316472 | 2012-09-30 18:35:02 -0700 | [diff] [blame] | 20 | <script type="text/javascript" src="../encoding/DateFormat.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 21 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 22 | <script type="text/javascript" src="../Interest.js"></script>
|
| 23 |
|
Jeff Thompson | c316472 | 2012-09-30 18:35:02 -0700 | [diff] [blame] | 24 | <script type="text/javascript" src="../Key.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 25 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 26 | <script type="text/javascript" src="../PublisherID.js"></script>
|
| 27 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 28 | <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 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 37 | <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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 42 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 43 | <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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 65 | var connector = new NDN();
|
| 66 | var co = connector.get(document.getElementById('interest').value);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 67 |
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 68 | var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 69 |
|
| 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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 80 | <input id="interest" type="text" name="INTEREST" size="50" value="/" />
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 81 | </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>
|