wt.index
Class IndexAccessorHttpConnection

java.lang.Object
  extended bywt.index.IndexAccessorConnection
      extended bywt.index.IndexAccessorHttpConnection

public class IndexAccessorHttpConnection
extends IndexAccessorConnection

Index Accessor to access an index using the HTTPClient library.


Nested Class Summary
 
Nested classes inherited from class wt.index.IndexAccessorConnection
IndexAccessorConnection.IndexAccessorInner
 
Field Summary
private  BufferedOutputStream bout
           
private static boolean CHUNKED
           
private  String collectionPath
           
private  HTTPClient.HTTPConnection con
           
(package private)  boolean connected
           
private static Hashtable connections
           
private static HTTPClient.NVPair[] form_data
           
private  String indexLoaderUrl
           
(package private)  boolean ok
           
private  HTTPClient.HttpOutputStream out
           
private  HTTPClient.HTTPResponse resp
           
private  TempFileOutputStream tout
           
private  URL url
           
 
Fields inherited from class wt.index.IndexAccessorConnection
DELETE, encoding, indexAccessor, indexKey, indexObjectClass, INSERT, operation, VALIDATE
 
Constructor Summary
IndexAccessorHttpConnection(String urlToServer)
           
 
Method Summary
 void closeConnection()
           
private static HTTPClient.HTTPConnection getConnection(URL url)
           
 OutputStream getOutputStream()
           
 String getStatus()
           
 void openConnection()
           
private  void openRemoteConnection()
           
 
Methods inherited from class wt.index.IndexAccessorConnection
getIndexAccessor, setOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHUNKED

private static final boolean CHUNKED
See Also:
Constant Field Values

url

private URL url

con

private HTTPClient.HTTPConnection con

resp

private HTTPClient.HTTPResponse resp

collectionPath

private String collectionPath

out

private HTTPClient.HttpOutputStream out

tout

private TempFileOutputStream tout

bout

private BufferedOutputStream bout

form_data

private static HTTPClient.NVPair[] form_data

connected

boolean connected

ok

boolean ok

indexLoaderUrl

private String indexLoaderUrl

connections

private static Hashtable connections
Constructor Detail

IndexAccessorHttpConnection

public IndexAccessorHttpConnection(String urlToServer)
Method Detail

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class IndexAccessorConnection
Throws:
IOException

openConnection

public void openConnection()
                    throws IOException
Specified by:
openConnection in class IndexAccessorConnection
Throws:
IOException

openRemoteConnection

private void openRemoteConnection()
                           throws IOException
Throws:
IOException

getStatus

public String getStatus()
                 throws WTException
Specified by:
getStatus in class IndexAccessorConnection
Throws:
WTException

closeConnection

public void closeConnection()
Specified by:
closeConnection in class IndexAccessorConnection

getConnection

private static HTTPClient.HTTPConnection getConnection(URL url)
                                                throws IOException,
                                                       HTTPClient.ModuleException
Throws:
IOException
HTTPClient.ModuleException