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

Quick Search    Search Deep

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

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

public class HLHandler
extends java.lang.Object


Field Summary
private  HLConfig config
           
private  java.io.OutputStream connectionStream
           
private  java.net.Socket connector
           
static java.lang.ThreadGroup CTG
           
private  java.io.OutputStream errorStream
           
private  java.util.HashMap fileTypes
           
private  java.lang.String indexDirectory
           
private  java.io.OutputStream indexStream
           
private  boolean loaded
           
private  java.io.OutputStream searchStream
           
private  com.telefonicasoluciones.search.server.util.HTTPClient session
           
private  java.lang.String temporaryDirectory
           
static java.lang.ThreadGroup TG
           
 
Constructor Summary
HLHandler(HLConfig newConfig)
          HLSyncronyze constructor comment.
 
Method Summary
 void finalize()
          Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed.
 java.net.Socket getConnector()
          Insert the method's description here.
 java.util.HashMap getFileTypes()
          Insert the method's description here.
 java.lang.String getIndexDirectory()
          Insert the method's description here.
 HLHandler getInstance(java.net.Socket newConnector)
          Crea una instancia de HLSyncronize.
 com.telefonicasoluciones.search.server.util.HTTPClient getSession()
          Insert the method's description here.
 java.lang.String getTemporaryDirectory()
          Insert the method's description here.
 boolean isLoaded()
          Insert the method's description here.
 void load(java.lang.String user)
          Carga la configuración correspondiente a una instancia del servidor.
 void setSession(com.telefonicasoluciones.search.server.util.HTTPClient session)
          Define la sesión HTTP de.
private  void verifyDirectory(java.lang.String directory)
          Insert the method's description here.
 void writeConnectionLog(java.lang.String text)
          Insert the method's description here.
 void writeErrorLog(java.lang.String text)
          Insert the method's description here.
 void writeIndexLog(java.lang.String text)
          Insert the method's description here.
 void writeSearchLog(java.lang.String text)
          Insert the method's description here.
 void writeSocketResponse(java.lang.String text)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

private HLConfig config

loaded

private boolean loaded

CTG

public static final java.lang.ThreadGroup CTG

TG

public static final java.lang.ThreadGroup TG

indexDirectory

private java.lang.String indexDirectory

temporaryDirectory

private java.lang.String temporaryDirectory

fileTypes

private java.util.HashMap fileTypes

connectionStream

private java.io.OutputStream connectionStream

indexStream

private java.io.OutputStream indexStream

searchStream

private java.io.OutputStream searchStream

errorStream

private java.io.OutputStream errorStream

connector

private java.net.Socket connector

session

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

HLHandler

public HLHandler(HLConfig newConfig)
HLSyncronyze constructor comment.

Method Detail

getConnector

public java.net.Socket getConnector()
Insert the method's description here. Creation date: (10/01/2002 9:46:26)


getFileTypes

public java.util.HashMap getFileTypes()
Insert the method's description here. Creation date: (10/01/2002 9:40:10)


getSession

public com.telefonicasoluciones.search.server.util.HTTPClient getSession()
Insert the method's description here. Creation date: (24/01/2002 19:51:46)


getIndexDirectory

public java.lang.String getIndexDirectory()
Insert the method's description here. Creation date: (10/01/2002 10:37:39)


getTemporaryDirectory

public java.lang.String getTemporaryDirectory()
Insert the method's description here. Creation date: (10/01/2002 10:37:39)


getInstance

public HLHandler getInstance(java.net.Socket newConnector)
                      throws HLHandlerException
Crea una instancia de HLSyncronize. Creation date: (10/01/2002 9:47:39)


isLoaded

public boolean isLoaded()
Insert the method's description here. Creation date: (10/01/2002 10:35:51)


load

public void load(java.lang.String user)
          throws HLHandlerException
Carga la configuración correspondiente a una instancia del servidor. Creation date: (10/01/2002 9:15:47)


setSession

public void setSession(com.telefonicasoluciones.search.server.util.HTTPClient session)
Define la sesión HTTP de. Creation date: (24/01/2002 19:51:46)


writeSocketResponse

public void writeSocketResponse(java.lang.String text)
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


writeConnectionLog

public void writeConnectionLog(java.lang.String text)
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


writeErrorLog

public void writeErrorLog(java.lang.String text)
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


writeSearchLog

public void writeSearchLog(java.lang.String text)
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


writeIndexLog

public void writeIndexLog(java.lang.String text)
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


verifyDirectory

private void verifyDirectory(java.lang.String directory)
                      throws HLHandlerException
Insert the method's description here. Creation date: (10/01/2002 10:00:03)


finalize

public void finalize()
Description copied from class: java.lang.Object
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. You would think that this means it eventually is called on every Object, but this is not necessarily the case. If execution terminates abnormally, garbage collection does not always happen. Thus you cannot rely on this method to always work. For finer control over garbage collection, use references from the java.lang.ref package.

Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply super.finalize().

finalize() will be called by a java.lang.Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.

If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.

It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.

Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls super.finalize().

The default implementation does nothing.