Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Freenet.message
Class Request  view Request download Request.java

java.lang.Object
  extended byFreenet.Message
      extended byFreenet.message.Request
Direct Known Subclasses:
DataRequest, InsertRequest

public abstract class Request
extends Freenet.Message


Nested Class Summary
static class Request.RequestAbortException
           
 
Field Summary
 Freenet.Key searchKey
           
 
Fields inherited from class Freenet.Message
depth, hopsToLive, id, keepAlive, messageName, receivedAt, receivedWith, source
 
Constructor Summary
Request(long idnum, long htl, long depth, Freenet.Key key)
           
Request(Freenet.RawMessage raw)
           
 
Method Summary
protected abstract  void dataFound(Freenet.node.Data data, Freenet.node.Node n)
           
static KeyedMM failedTimedOut(Freenet.node.Node n, long id, KeyedMM kmm)
           
 Freenet.MessageMemory pReceived(Freenet.node.Node n, Freenet.MessageMemory sb)
          Called by a node after it receives this message
protected abstract  void refFound(Freenet.Address ref, Freenet.node.Node n)
           
protected  Freenet.MessageMemory timeOut(Freenet.node.Node n, Freenet.MessageMemory mm)
           
 Freenet.RawMessage toRawMessage()
           
 
Methods inherited from class Freenet.Message
initSources, popField, received, sendBack, sending, sending, sendReply, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searchKey

public Freenet.Key searchKey
Constructor Detail

Request

public Request(long idnum,
               long htl,
               long depth,
               Freenet.Key key)

Request

public Request(Freenet.RawMessage raw)
        throws Freenet.InvalidMessageException
Method Detail

toRawMessage

public Freenet.RawMessage toRawMessage()

pReceived

public Freenet.MessageMemory pReceived(Freenet.node.Node n,
                                       Freenet.MessageMemory sb)
Called by a node after it receives this message


failedTimedOut

public static KeyedMM failedTimedOut(Freenet.node.Node n,
                                     long id,
                                     KeyedMM kmm)

refFound

protected abstract void refFound(Freenet.Address ref,
                                 Freenet.node.Node n)
                          throws Request.RequestAbortException

dataFound

protected abstract void dataFound(Freenet.node.Data data,
                                  Freenet.node.Node n)
                           throws Request.RequestAbortException

timeOut

protected Freenet.MessageMemory timeOut(Freenet.node.Node n,
                                        Freenet.MessageMemory mm)