wt.index
Class IndexAccessorHttpConnection
java.lang.Object
wt.index.IndexAccessorConnection
wt.index.IndexAccessorHttpConnection
- public class IndexAccessorHttpConnection
- extends IndexAccessorConnection
Index Accessor to access an index using the HTTPClient library.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
IndexAccessorHttpConnection
public IndexAccessorHttpConnection(String urlToServer)
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