<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!-- NewPage --> | |
<html lang="en"> | |
<head> | |
<!-- Generated by javadoc (1.8.0) on Sun Aug 28 20:41:46 EST 2016 --> | |
<title>Handler (Apache River v3.0.0 Specification-only API Documentation)</title> | |
<meta name="date" content="2016-08-28"> | |
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> | |
<script type="text/javascript" src="../../../../script.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"><!-- | |
try { | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="Handler (Apache River v3.0.0 Specification-only API Documentation)"; | |
} | |
} | |
catch(err) { | |
} | |
//--> | |
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; | |
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; | |
var altColor = "altColor"; | |
var rowColor = "rowColor"; | |
var tableTab = "tableTab"; | |
var activeTableTab = "activeTableTab"; | |
</script> | |
<noscript> | |
<div>JavaScript is disabled on your browser.</div> | |
</noscript> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<div class="topNav"><a name="navbar.top"> | |
<!-- --> | |
</a> | |
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> | |
<a name="navbar.top.firstrow"> | |
<!-- --> | |
</a> | |
<ul class="navList" title="Navigation"> | |
<li><a href="../../../../overview-summary.html">Overview</a></li> | |
<li><a href="package-summary.html">Package</a></li> | |
<li class="navBarCell1Rev">Class</li> | |
<li><a href="class-use/Handler.html">Use</a></li> | |
<li><a href="package-tree.html">Tree</a></li> | |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> | |
<li><a href="../../../../index-all.html">Index</a></li> | |
<li><a href="../../../../help-doc.html">Help</a></li> | |
</ul> | |
</div> | |
<div class="subNav"> | |
<ul class="navList"> | |
<li>Prev Class</li> | |
<li><a href="../../../../net/jini/url/httpmd/HttpmdIntegrityVerifier.html" title="class in net.jini.url.httpmd"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../../index.html?net/jini/url/httpmd/Handler.html" target="_top">Frames</a></li> | |
<li><a href="Handler.html" target="_top">No Frames</a></li> | |
</ul> | |
<ul class="navList" id="allclasses_navbar_top"> | |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> | |
</ul> | |
<div> | |
<script type="text/javascript"><!-- | |
allClassesLink = document.getElementById("allclasses_navbar_top"); | |
if(window==top) { | |
allClassesLink.style.display = "block"; | |
} | |
else { | |
allClassesLink.style.display = "none"; | |
} | |
//--> | |
</script> | |
</div> | |
<div> | |
<ul class="subNavList"> | |
<li>Summary: </li> | |
<li>Nested | </li> | |
<li>Field | </li> | |
<li><a href="#constructor.summary">Constr</a> | </li> | |
<li><a href="#method.summary">Method</a></li> | |
</ul> | |
<ul class="subNavList"> | |
<li>Detail: </li> | |
<li>Field | </li> | |
<li><a href="#constructor.detail">Constr</a> | </li> | |
<li><a href="#method.detail">Method</a></li> | |
</ul> | |
</div> | |
<a name="skip.navbar.top"> | |
<!-- --> | |
</a></div> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<div class="header"> | |
<div class="subTitle">net.jini.url.httpmd</div> | |
<h2 title="Class Handler" class="title">Class Handler</h2> | |
</div> | |
<div class="contentContainer"> | |
<ul class="inheritance"> | |
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> | |
<li> | |
<ul class="inheritance"> | |
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">java.net.URLStreamHandler</a></li> | |
<li> | |
<ul class="inheritance"> | |
<li>net.jini.url.httpmd.Handler</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<div class="description"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<hr> | |
<br> | |
<pre>public class <span class="typeNameLabel">Handler</span> | |
extends <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></pre> | |
<div class="block">A stream handler for URLs with the HTTPMD protocol. HTTPMD URLs provide a | |
way to insure the integrity of data retrieved from an HTTP URL. The HTTPMD | |
URL includes a message digest for the data to be retrieved from the URL. The | |
URL input stream insures that the data has the correct message digest when | |
the end of file for the stream is reached. If the data has the wrong | |
message digest, a <a href="../../../../net/jini/url/httpmd/WrongMessageDigestException.html" title="class in net.jini.url.httpmd"><code>WrongMessageDigestException</code></a> is thrown. <p> | |
HTTPMD URLs may be used to guarantee the integrity of a downloaded object's | |
codebase if used when specifying the URLs for the JAR files containing the | |
object's classes. Because HTTPMD URLs specify a message digest for a single | |
item, they should not be used for directories of classes. <p> | |
HTTPMD URLs have a syntax similar to that of HTTP URLs, but include a | |
message digest as the last parameter stored in the last segment of the | |
path. The parameter is introduced by the '<code>;</code>' character, and | |
includes the name of the message digest algorithm, a '<code>=</code>', the | |
message digest, and an optional comment introduced by the '<code>,</code>' | |
character. In addition, a comment by itself may be specified in a relative | |
HTTPMD URL. Comments are ignored when using <code>equals</code> to compare | |
HTTPMD URLs. The comment specified in the context URL is ignored when | |
parsing a relative HTTPMD URL. Adding a comment to an HTTPMD URL is useful | |
in cases where the URL is required to have a particular suffix, for example | |
the ".jar" file extension. A comment-only relative HTTPMD URL is useful when | |
specifying the URL of the containing document from within the contents of | |
the document, where the message digest cannot be specified because it is not | |
yet known. <p> | |
The message digest algorithm is case-insensitive, and may include ASCII | |
letters and numbers, as well as the following characters: | |
<pre> | |
- _ . ~ * ' ( ) : @ & + $ , | |
</pre> <p> | |
The value specifies the name of the <a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security"><code>MessageDigest</code></a> algorithm to | |
use. For the URL syntax to be valid, the value must be the name of a | |
<code>MessageDigest</code> algorithm as determined by calling | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true#getInstance-java.lang.String-" title="class or interface in java.security"><code>MessageDigest.getInstance(String)</code></a>. <p> | |
The message digest is represented as a positive hexadecimal integer, using | |
digits, and the letters '<code>a</code>' through '<code>f</code>', in either | |
lowercase or uppercase. <p> | |
The characters following the '<code>,</code>' comment character may include | |
ASCII letters and numbers, as well as the following characters: | |
<pre> | |
- _ . ~ * ' ( ) : @ & = + $ , | |
</pre> <p> | |
Here are some examples of HTTPMD URLs: <p> <ul> | |
<li> An absolute URL: <br> | |
<code> | |
httpmd://www.sun.com/index.html;md5=7be207c7111e459eeea1c9b3d04f1667 | |
</code> | |
<li> A relative URL: <br> | |
<code> | |
index.html;sha=99f6837808c0a79398bf69d83cfb1b82d20cf0cf,Comment | |
</code> | |
<li> A comment-only relative URL: <br> | |
<code>,.jar</code> | |
</ul></div> | |
<dl> | |
<dt><span class="simpleTagLabel">Since:</span></dt> | |
<dd>2.0</dd> | |
<dt><span class="simpleTagLabel">Author:</span></dt> | |
<dd>Sun Microsystems, Inc.</dd> | |
<dt><span class="seeLabel">See Also:</span></dt> | |
<dd><a href="../../../../net/jini/url/httpmd/HttpmdUtil.html" title="class in net.jini.url.httpmd"><code>HttpmdUtil</code></a></dd> | |
</dl> | |
</li> | |
</ul> | |
</div> | |
<div class="summary"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="constructor.summary"> | |
<!-- --> | |
</a> | |
<h3>Constructor Summary</h3> | |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> | |
<caption><span>Constructors</span><span class="tabEnd"> </span></caption> | |
<tr> | |
<th class="colOne" scope="col">Constructor and Description</th> | |
</tr> | |
<tr class="altColor"> | |
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#Handler--">Handler</a></span>()</code> | |
<div class="block">Creates a URL stream handler for HTTPMD URLs.</div> | |
</td> | |
</tr> | |
</table> | |
</li> | |
</ul> | |
<!-- ========== METHOD SUMMARY =========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="method.summary"> | |
<!-- --> | |
</a> | |
<h3>Method Summary</h3> | |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> | |
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> | |
<tr> | |
<th class="colFirst" scope="col">Modifier and Type</th> | |
<th class="colLast" scope="col">Method and Description</th> | |
</tr> | |
<tr id="i0" class="altColor"> | |
<td class="colFirst"><code>protected int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#getDefaultPort--">getDefaultPort</a></span>()</code> | |
<div class="block">Returns the default port for a URL parsed by this handler, which is | |
<code>80</code>.</div> | |
</td> | |
</tr> | |
<tr id="i1" class="rowColor"> | |
<td class="colFirst"><code>protected int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#hashCode-java.net.URL-">hashCode</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u)</code> | |
<div class="block">Computes the hash code for the specified URL.</div> | |
</td> | |
</tr> | |
<tr id="i2" class="altColor"> | |
<td class="colFirst"><code>protected boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#hostsEqual-java.net.URL-java.net.URL-">hostsEqual</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u1, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u2)</code> | |
<div class="block">The default superclass implementation performs dns lookup to determine | |
if hosts are equal, this allows two URL's with different hashCode's | |
to be equal, breaking the hashCode equals contract.</div> | |
</td> | |
</tr> | |
<tr id="i3" class="rowColor"> | |
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#openConnection-java.net.URL-">openConnection</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u)</code> | |
<div class="block">Creates a HTTP URL connection for an HTTPMD URL.</div> | |
</td> | |
</tr> | |
<tr id="i4" class="altColor"> | |
<td class="colFirst"><code>protected void</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#parseURL-java.net.URL-java.lang.String-int-int-">parseURL</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> spec, | |
int start, | |
int limit)</code> | |
<div class="block">Parses the string representation of an HTTPMD URL object.</div> | |
</td> | |
</tr> | |
<tr id="i5" class="rowColor"> | |
<td class="colFirst"><code>protected boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../net/jini/url/httpmd/Handler.html#sameFile-java.net.URL-java.net.URL-">sameFile</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u1, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u2)</code> | |
<div class="block">Compares two HTTPMD URLs to see if they refer to the same file.</div> | |
</td> | |
</tr> | |
</table> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.java.net.URLStreamHandler"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from class java.net.<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></h3> | |
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#equals-java.net.URL-java.net.URL-" title="class or interface in java.net">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#getHostAddress-java.net.URL-" title="class or interface in java.net">getHostAddress</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#openConnection-java.net.URL-java.net.Proxy-" title="class or interface in java.net">openConnection</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#setURL-java.net.URL-java.lang.String-java.lang.String-int-java.lang.String-java.lang.String-" title="class or interface in java.net">setURL</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#setURL-java.net.URL-java.lang.String-java.lang.String-int-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-" title="class or interface in java.net">setURL</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#toExternalForm-java.net.URL-" title="class or interface in java.net">toExternalForm</a></code></li> | |
</ul> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> | |
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</div> | |
<div class="details"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="constructor.detail"> | |
<!-- --> | |
</a> | |
<h3>Constructor Detail</h3> | |
<a name="Handler--"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>Handler</h4> | |
<pre>public Handler()</pre> | |
<div class="block">Creates a URL stream handler for HTTPMD URLs.</div> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<!-- ============ METHOD DETAIL ========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="method.detail"> | |
<!-- --> | |
</a> | |
<h3>Method Detail</h3> | |
<a name="getDefaultPort--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>getDefaultPort</h4> | |
<pre>protected int getDefaultPort()</pre> | |
<div class="block">Returns the default port for a URL parsed by this handler, which is | |
<code>80</code>.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#getDefaultPort--" title="class or interface in java.net">getDefaultPort</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>the default port for a URL parsed by this handler</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="openConnection-java.net.URL-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>openConnection</h4> | |
<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a> openConnection(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u) | |
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> | |
<div class="block">Creates a HTTP URL connection for an HTTPMD URL.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#openConnection-java.net.URL-" title="class or interface in java.net">openConnection</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
<dt><span class="throwsLabel">Throws:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="parseURL-java.net.URL-java.lang.String-int-int-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>parseURL</h4> | |
<pre>protected void parseURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> spec, | |
int start, | |
int limit)</pre> | |
<div class="block">Parses the string representation of an HTTPMD URL object.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#parseURL-java.net.URL-java.lang.String-int-int-" title="class or interface in java.net">parseURL</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
<dt><span class="throwsLabel">Throws:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the URL is malformed</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="hostsEqual-java.net.URL-java.net.URL-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>hostsEqual</h4> | |
<pre>protected boolean hostsEqual(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u1, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u2)</pre> | |
<div class="block">The default superclass implementation performs dns lookup to determine | |
if hosts are equal, this allows two URL's with different hashCode's | |
to be equal, breaking the hashCode equals contract. | |
It also causes a test failure in the jtreg test suite. | |
*** Start test: Mon Jan 23 08:11:26 EST 2012 | |
[jtreg] Test 9: TestEqual: httpmd://foo:88/bar/baz;p1=v1;md5=abcd?q#r, httpmd://alpha:88/bar/baz;p1=v1;md5=abcd?q#r | |
[jtreg] FAIL: Should be: false | |
[jtreg] Result: true | |
URL.implies(URL url) is better suited to perform this function, why | |
it was originally implemented in equals is unknown.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#hostsEqual-java.net.URL-java.net.URL-" title="class or interface in java.net">hostsEqual</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="sameFile-java.net.URL-java.net.URL-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>sameFile</h4> | |
<pre>protected boolean sameFile(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u1, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u2)</pre> | |
<div class="block">Compares two HTTPMD URLs to see if they refer to the same file. Performs | |
case-insensitive comparison of the protocols and of the message digest | |
parameters (ignoring the comment), calls <code>hostsEqual</code> to | |
compare the hosts, compares the ports, with <code>-1</code> matching the | |
default HTTP port (<code>80</code>), and performs case-sensitive | |
comparison on the remaining portions.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#sameFile-java.net.URL-java.net.URL-" title="class or interface in java.net">sameFile</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="hashCode-java.net.URL-"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>hashCode</h4> | |
<pre>protected int hashCode(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> u)</pre> | |
<div class="block">Computes the hash code for the specified URL. This method ignores the | |
comment portion of the message digest parameter, and ignores the | |
case of characters in the message digest and algorithm.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true#hashCode-java.net.URL-" title="class or interface in java.net">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/net/URLStreamHandler.html?is-external=true" title="class or interface in java.net">URLStreamHandler</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<div class="bottomNav"><a name="navbar.bottom"> | |
<!-- --> | |
</a> | |
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> | |
<a name="navbar.bottom.firstrow"> | |
<!-- --> | |
</a> | |
<ul class="navList" title="Navigation"> | |
<li><a href="../../../../overview-summary.html">Overview</a></li> | |
<li><a href="package-summary.html">Package</a></li> | |
<li class="navBarCell1Rev">Class</li> | |
<li><a href="class-use/Handler.html">Use</a></li> | |
<li><a href="package-tree.html">Tree</a></li> | |
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> | |
<li><a href="../../../../index-all.html">Index</a></li> | |
<li><a href="../../../../help-doc.html">Help</a></li> | |
</ul> | |
</div> | |
<div class="subNav"> | |
<ul class="navList"> | |
<li>Prev Class</li> | |
<li><a href="../../../../net/jini/url/httpmd/HttpmdIntegrityVerifier.html" title="class in net.jini.url.httpmd"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../../index.html?net/jini/url/httpmd/Handler.html" target="_top">Frames</a></li> | |
<li><a href="Handler.html" target="_top">No Frames</a></li> | |
</ul> | |
<ul class="navList" id="allclasses_navbar_bottom"> | |
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> | |
</ul> | |
<div> | |
<script type="text/javascript"><!-- | |
allClassesLink = document.getElementById("allclasses_navbar_bottom"); | |
if(window==top) { | |
allClassesLink.style.display = "block"; | |
} | |
else { | |
allClassesLink.style.display = "none"; | |
} | |
//--> | |
</script> | |
</div> | |
<div> | |
<ul class="subNavList"> | |
<li>Summary: </li> | |
<li>Nested | </li> | |
<li>Field | </li> | |
<li><a href="#constructor.summary">Constr</a> | </li> | |
<li><a href="#method.summary">Method</a></li> | |
</ul> | |
<ul class="subNavList"> | |
<li>Detail: </li> | |
<li>Field | </li> | |
<li><a href="#constructor.detail">Constr</a> | </li> | |
<li><a href="#method.detail">Method</a></li> | |
</ul> | |
</div> | |
<a name="skip.navbar.bottom"> | |
<!-- --> | |
</a></div> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
</body> | |
</html> |