multivalent

Class DocInfo

public class DocInfo extends Object

Record of various data about a Document, for parameters for loading and for reports of general information for various behaviors.

Version: $Revision: 1.4 $ $Date: 2002/10/29 16:30:57 $

Field Summary
Map<String,Object>attrs
in-out: URL in (which could be search words), signature stripped off, ....
Documentdoc
maybe change to String that you search for.
Stringgenre
Genre mapping, such as "PDF" or "ManualPage".
Map<String,String>headers
HTTP headers (mocked up for file).
Stringmethod
HTTP method: GET, POST, HEAD, ....
intreturncode
-1==haven't connected yet.
URIuri
Actual URI found, after possible 300/301/302 redirect, generalization to match compressed version, redirection to cached copy, or whatever.
Objecturiin
Requested URI.
Objectwindow
set to Browser or String name of Browser window.
Constructor Summary
DocInfo(URI uri)

Field Detail

attrs

public final Map<String,Object> attrs
in-out: URL in (which could be search words), signature stripped off, ....

doc

public Document doc
maybe change to String that you search for.

genre

public String genre
Genre mapping, such as "PDF" or "ManualPage".

headers

public final Map<String,String> headers
HTTP headers (mocked up for file). in-out => change to List<> as can have duplicate keys, as with set-cookie. Normalize key.

method

public String method
HTTP method: GET, POST, HEAD, .... Stuff accompanying (escaped) data for POST in attrs.

returncode

public int returncode
-1==haven't connected yet.

uri

public URI uri
Actual URI found, after possible 300/301/302 redirect, generalization to match compressed version, redirection to cached copy, or whatever.

uriin

public Object uriin
Requested URI. Can be URL, search words, "about:multivalent", whatever.

window

public Object window
set to Browser or String name of Browser window.

Constructor Detail

DocInfo

public DocInfo(URI uri)