You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Projet_JAVA_P2P_STRI2A/doc/javadoc/tools/ServeErrors.html

463 lines
18 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_181) on Mon Apr 13 15:38:50 CEST 2020 -->
<title>ServeErrors</title>
<meta name="date" content="2020-04-13">
<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="ServeErrors";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":6,"i8":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/ServeErrors.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-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../tools/SearchFile.html" title="class in tools"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../tools/ServerPortRange.html" title="class in tools"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?tools/ServeErrors.html" target="_top">Frames</a></li>
<li><a href="ServeErrors.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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">tools</div>
<h2 title="Class ServeErrors" class="title">Class ServeErrors</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>tools.ServeErrors</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../clientP2P/ClientDownload.html" title="class in clientP2P">ClientDownload</a>, <a href="../clientP2P/ClientDownloadPart.html" title="class in clientP2P">ClientDownloadPart</a>, <a href="../clientP2P/ClientManagement.html" title="class in clientP2P">ClientManagement</a>, <a href="../serverP2P/ServerManagement.html" title="class in serverP2P">ServerManagement</a>, <a href="../tracker/TrackerManagement.html" title="class in tracker">TrackerManagement</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">ServeErrors</span>
extends java.lang.Object</pre>
</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">&nbsp;</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="../tools/ServeErrors.html#ServeErrors--">ServeErrors</a></span>()</code>&nbsp;</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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 abstract &lt;T extends <a href="../protocolP2P/Payload.html" title="class in protocolP2P">Payload</a>&gt;<br><a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#createProtocolP2PPacket-T-">createProtocolP2PPacket</a></span>(T&nbsp;payload)</code>
<div class="block">Create packets</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendEmptyDirectory-T-">sendEmptyDirectory</a></span>(T&nbsp;pd)</code>
<div class="block">Send an empty directory message.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendEmptyFile-T-">sendEmptyFile</a></span>(T&nbsp;pd)</code>
<div class="block">Send an empty file message.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendInternalError-T-">sendInternalError</a></span>(T&nbsp;pd)</code>
<div class="block">Send an internal error message.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendNotATracker-T-">sendNotATracker</a></span>(T&nbsp;pd)</code>
<div class="block">Send a NotATracker error message.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendNotFound-T-">sendNotFound</a></span>(T&nbsp;pd)</code>
<div class="block">Send a not found message.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected &lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#sendUnknownHost-T-">sendUnknownHost</a></span>(T&nbsp;pd)</code>
<div class="block">Send an unknown host message.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#writeLog-java.lang.Exception-tools.LogLevel-">writeLog</a></span>(java.lang.Exception&nbsp;e,
<a href="../tools/LogLevel.html" title="enum in tools">LogLevel</a>&nbsp;logLevel)</code>
<div class="block">Implementation of writeLog</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../tools/ServeErrors.html#writeLog-java.lang.String-tools.LogLevel-">writeLog</a></span>(java.lang.String&nbsp;text,
<a href="../tools/LogLevel.html" title="enum in tools">LogLevel</a>&nbsp;logLevel)</code>
<div class="block">Implementation of writeLog</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="ServeErrors--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ServeErrors</h4>
<pre>public&nbsp;ServeErrors()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="writeLog-java.lang.String-tools.LogLevel-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeLog</h4>
<pre>protected abstract&nbsp;void&nbsp;writeLog(java.lang.String&nbsp;text,
<a href="../tools/LogLevel.html" title="enum in tools">LogLevel</a>&nbsp;logLevel)</pre>
<div class="block">Implementation of writeLog</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - Text to log</dd>
<dd><code>logLevel</code> - level of logging</dd>
</dl>
</li>
</ul>
<a name="writeLog-java.lang.Exception-tools.LogLevel-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeLog</h4>
<pre>protected abstract&nbsp;void&nbsp;writeLog(java.lang.Exception&nbsp;e,
<a href="../tools/LogLevel.html" title="enum in tools">LogLevel</a>&nbsp;logLevel)</pre>
<div class="block">Implementation of writeLog</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>e</code> - exception to log</dd>
<dd><code>logLevel</code> - level of logging</dd>
</dl>
</li>
</ul>
<a name="createProtocolP2PPacket-protocolP2P.Payload-">
<!-- -->
</a><a name="createProtocolP2PPacket-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createProtocolP2PPacket</h4>
<pre>protected abstract&nbsp;&lt;T extends <a href="../protocolP2P/Payload.html" title="class in protocolP2P">Payload</a>&gt;&nbsp;<a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&nbsp;createProtocolP2PPacket(T&nbsp;payload)</pre>
<div class="block">Create packets</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>payload</code> - Payload</dd>
</dl>
</li>
</ul>
<a name="sendNotATracker-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendNotATracker-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendNotATracker</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendNotATracker(T&nbsp;pd)</pre>
<div class="block">Send a NotATracker error message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</dd>
</dl>
</li>
</ul>
<a name="sendInternalError-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendInternalError-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendInternalError</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendInternalError(T&nbsp;pd)</pre>
<div class="block">Send an internal error message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</dd>
</dl>
</li>
</ul>
<a name="sendNotFound-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendNotFound-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendNotFound</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendNotFound(T&nbsp;pd)</pre>
<div class="block">Send a not found message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</dd>
</dl>
</li>
</ul>
<a name="sendEmptyDirectory-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendEmptyDirectory-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendEmptyDirectory</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendEmptyDirectory(T&nbsp;pd)</pre>
<div class="block">Send an empty directory message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</dd>
</dl>
</li>
</ul>
<a name="sendEmptyFile-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendEmptyFile-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendEmptyFile</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendEmptyFile(T&nbsp;pd)</pre>
<div class="block">Send an empty file message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</dd>
</dl>
</li>
</ul>
<a name="sendUnknownHost-protocolP2P.ProtocolP2PPacket-">
<!-- -->
</a><a name="sendUnknownHost-T-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>sendUnknownHost</h4>
<pre>protected&nbsp;&lt;T extends <a href="../protocolP2P/ProtocolP2PPacket.html" title="class in protocolP2P">ProtocolP2PPacket</a>&lt;?&gt;&gt;&nbsp;void&nbsp;sendUnknownHost(T&nbsp;pd)</pre>
<div class="block">Send an unknown host message.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pd</code> - Request received</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/ServeErrors.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-files/index-1.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../tools/SearchFile.html" title="class in tools"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../tools/ServerPortRange.html" title="class in tools"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?tools/ServeErrors.html" target="_top">Frames</a></li>
<li><a href="ServeErrors.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>