| 
 | DLESE Tools v1.6.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.index.writer.WebLogWriter
public class WebLogWriter
Writes a Lucene Document that holds
  information about a client request to an HTTP servlet. 
  The Lucene Document fields that are
  created by this class are: 
  
  requestdate  - The date of the client request. Stored.
  
  requesturl  - The URL and query the client requested.
  Stored.
  remotehost  - The requesting client's host name or IP
  address. Stored.
  notes  - Free text notes related to this log entry.
  Stored.
  doctype  - The document format type, which is 'weblog,'
  with '0' appended to support wildcard searching.
  readerclass  - The class which is used to read Documents created by this writer, which is
  'WebLogReader'.
  admindefaultfield  - The default field that holds all content for searching.
  'WebLogReader'.
 
  
WebLogReader| Constructor Summary | |
|---|---|
| WebLogWriter()Constructor for the WebLogWriter object | |
| Method Summary | |
|---|---|
| protected  void | addToAdminDefaultField(String value,
                       StringBuffer adminDefaultBuffer)Adds the given String to a text field referenced in the index by the field name 'default'. | 
|  String | getDocType()Gets doctype, which is "weblog". | 
|  String | getReaderClass()Gets the name of the concrete DocReaderclass that is used to read this type ofDocument, which is "WebLogReader". | 
|  org.apache.lucene.document.Document | log(HttpServletRequest request)Create a log entry Document. | 
|  org.apache.lucene.document.Document | log(HttpServletRequest request,
    String notes)Create a log entry Document, storing and indexing the given notes. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WebLogWriter()
| Method Detail | 
|---|
public String getDocType()
getDocType in interface DocWriterpublic String getReaderClass()
DocReader
  class that is used to read this type of Document, which is "WebLogReader".
getReaderClass in interface DocWriterpublic final org.apache.lucene.document.Document log(HttpServletRequest request)
request - The HTTP request.
public final org.apache.lucene.document.Document log(HttpServletRequest request,
                                                     String notes)
request - The HTTP request.notes - Notes about this web log entry.
protected final void addToAdminDefaultField(String value,
                                            StringBuffer adminDefaultBuffer)
value - A text string to be added to the indexed field named
      'default.'adminDefaultBuffer - The feature to be added to the ToDefaultField
      attribute| 
 | DLESE Tools v1.6.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||