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

Quick Search    Search Deep

com.telefonicasoluciones.search.server
Class HLIndex  view HLIndex download HLIndex.java

java.lang.Object
  extended bycom.telefonicasoluciones.search.server.HLIndex

public class HLIndex
extends java.lang.Object


Field Summary
private  java.net.Socket connector
           
private  boolean deleteOldDocuments
           
private  org.apache.lucene.store.Directory directory
           
private  HLHandler hls
           
private static int HTML
           
private  java.util.ArrayList links
           
private static int PDF
           
private  boolean recursive
           
private  com.telefonicasoluciones.search.server.util.HTTPClient session
           
private static int TEXT
           
private static int XML
           
private static int ZIP
           
 
Constructor Summary
HLIndex(java.net.Socket s, HLHandler newHls)
           
 
Method Summary
 void deleteOldDocuments(boolean newDeleteOldDocuments)
           
private  java.lang.String fix(java.lang.String link)
           
private  void fixLinks(java.util.ArrayList tempLinks, com.telefonicasoluciones.search.server.util.HTTPClient session)
           
private  void index()
           
private  void index(java.io.File fileName, com.telefonicasoluciones.search.server.util.HTTPClient session)
           
 void index(java.net.URL URLFile)
           
 void setRecursive(boolean newRecursive)
           
 void writeResponse(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT

private static final int TEXT
See Also:
Constant Field Values

HTML

private static final int HTML
See Also:
Constant Field Values

XML

private static final int XML
See Also:
Constant Field Values

ZIP

private static final int ZIP
See Also:
Constant Field Values

PDF

private static final int PDF
See Also:
Constant Field Values

hls

private HLHandler hls

directory

private org.apache.lucene.store.Directory directory

session

private com.telefonicasoluciones.search.server.util.HTTPClient session

links

private java.util.ArrayList links

connector

private java.net.Socket connector

recursive

private boolean recursive

deleteOldDocuments

private boolean deleteOldDocuments
Constructor Detail

HLIndex

public HLIndex(java.net.Socket s,
               HLHandler newHls)
        throws HLIndexException
Method Detail

index

private void index()
            throws HLIndexException

deleteOldDocuments

public void deleteOldDocuments(boolean newDeleteOldDocuments)

fix

private java.lang.String fix(java.lang.String link)
                      throws java.lang.Exception

index

public void index(java.net.URL URLFile)

index

private void index(java.io.File fileName,
                   com.telefonicasoluciones.search.server.util.HTTPClient session)
            throws java.io.IOException

setRecursive

public void setRecursive(boolean newRecursive)

fixLinks

private void fixLinks(java.util.ArrayList tempLinks,
                      com.telefonicasoluciones.search.server.util.HTTPClient session)

writeResponse

public void writeResponse(java.lang.String text)