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 | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 12 | <script type="text/javascript" src="../CCNProtocolDTags.js"></script>
|
| 13 |
|
| 14 | <script type="text/javascript" src="../CCNTime.js"></script>
|
| 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 |
|
| 20 | <script type="text/javascript" src="../DateFormat.js"></script>
|
| 21 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 22 | <script type="text/javascript" src="../Interest.js"></script>
|
| 23 |
|
| 24 | <script type="text/javascript" src="../KeyLocator.js"></script>
|
| 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 |
|
| 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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 44 |
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 45 | <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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 67 | var connector = new NDN();
|
| 68 | var co = connector.get(document.getElementById('interest').value);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 69 |
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 70 | var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 71 |
|
| 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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 82 | <input id="interest" type="text" name="INTEREST" size="50" value="/" />
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 83 | </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>
|