com.voidsearch.voidbase.client
Class VoidBaseHttpClient

java.lang.Object
  extended by com.voidsearch.voidbase.client.VoidBaseHttpClient
All Implemented Interfaces:
VoidBaseClient
Direct Known Subclasses:
HttpFeedFetcher, QueueTreeClient

public abstract class VoidBaseHttpClient
extends java.lang.Object
implements VoidBaseClient


Field Summary
protected  org.apache.commons.httpclient.HttpClient client
           
protected static java.lang.String hostname
           
protected static java.lang.String module
           
 
Constructor Summary
VoidBaseHttpClient()
           
VoidBaseHttpClient(java.lang.String hostname, java.lang.String module)
           
 
Method Summary
 byte[] get(java.lang.String query)
           
protected  byte[] get(VoidBaseQuery query)
           
protected  void post(VoidBaseQuery query, java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected org.apache.commons.httpclient.HttpClient client

hostname

protected static java.lang.String hostname

module

protected static java.lang.String module
Constructor Detail

VoidBaseHttpClient

public VoidBaseHttpClient()

VoidBaseHttpClient

public VoidBaseHttpClient(java.lang.String hostname,
                          java.lang.String module)
Method Detail

get

protected byte[] get(VoidBaseQuery query)
              throws java.lang.Exception
Throws:
java.lang.Exception

get

public byte[] get(java.lang.String query)
           throws java.lang.Exception
Throws:
java.lang.Exception

post

protected void post(VoidBaseQuery query,
                    java.lang.String content)
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.